Skip to content

Commit

Permalink
Misc: add eslint max lenght errors
Browse files Browse the repository at this point in the history
  • Loading branch information
HFG43 committed Nov 9, 2023
1 parent 9e2832a commit f745859
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/Components/AddExperience.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ function AddExperience() {
msg.textContent = 'Fill out all the fields please';
} else {
const response = dispatch(createExperience(
experience(name.value, description.value, experienceFee.value, addTestingFee.value, reserveFullTable.value, guests.value, experienceImage.value),
experience(
name.value, description.value, experienceFee.value, addTestingFee.value,
reserveFullTable.value, guests.value, experienceImage.value,
),
));

response.then((data) => {
Expand Down Expand Up @@ -50,8 +53,8 @@ function AddExperience() {
<span id="message-error" />
<input id="name" type="text" placeholder="Experience Name" className="form-input reserv-input" required />
<input id="description" type="text" placeholder="Describe the Experience" className="form-input reserv-input" required />
<input id="expfee" type="number" placeholder="Experience Fee" className="form-input reserv-input" required min="0" step="1"/>
<input id="testing" type="number" placeholder="Additional Testing Fee" className="form-input reserv-input" rrequired min="0" step="1" />
<input id="expfee" type="number" placeholder="Experience Fee" className="form-input reserv-input" required min="0" step="1" />
<input id="testing" type="number" placeholder="Additional Testing Fee" className="form-input reserv-input" required min="0" step="1" />
<input id="fulltable" type="number" placeholder="Additional Full Table Fee" className="form-input reserv-input" required min="0" step="1" />
<input id="guests" type="number" placeholder="Guests included in Experience" className="form-input reserv-input" required min="0" step="1" />
<input id="image" type="text" placeholder="Add an Experience image" className="form-input reserv-input" required />
Expand Down
9 changes: 6 additions & 3 deletions src/logic/formatObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ const user = (userName, nickname) => ({
username: nickname,
});

export const experience = (experienceName, description, experienceFee, addTestingFee, reserveFullTable, guests, experienceImage) => ({
export const experience = (
experienceName, description, experienceFee, addTestingFee,
reserveFullTable, guests, experienceImage,
) => ({
name: experienceName,
description: description,
description,
experience_fee: experienceFee,
add_testing_fee: addTestingFee,
reserve_full_table: reserveFullTable,
guests: guests,
guests,
image: experienceImage,
});

Expand Down

0 comments on commit f745859

Please sign in to comment.