Skip to content

Commit

Permalink
redo linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michellejli77 committed Mar 16, 2024
1 parent f7528cf commit 551e6bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions client/src/components/AddItemButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ function AddItemButton(props: {
name="name"
value={state.name}
onChange={handleChange}
// error={nameError}
// error={nameError}
/>
<Form.Group widths="equal">
<Form.Field required>
Expand All @@ -492,7 +492,7 @@ function AddItemButton(props: {
placeholder="Location"
value={state.whereFound}
onChange={handleChange}
// error={locationError}
// error={locationError}
/>
</Form.Group>
<Form.Input
Expand All @@ -502,7 +502,7 @@ function AddItemButton(props: {
name="description"
value={state.description}
onChange={handleChange}
// error={descriptionError}
// error={descriptionError}
/>
<Form.Group inline>
<Form.Field required>
Expand Down
16 changes: 8 additions & 8 deletions client/src/components/EditItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ function EditItem(props: {
const [state, setState] = useState({
date: new Date(
new Date(props.item.dateFound).toISOString().substring(0, 10) +
"T" +
(props.item.timeFound.trim().length > 4
? props.item.timeFound.trim()
: "0" + props.item.timeFound.trim())
"T" +
(props.item.timeFound.trim().length > 4
? props.item.timeFound.trim()
: "0" + props.item.timeFound.trim())
),
name: props.item.name,
whereFound: props.item.whereFound,
Expand Down Expand Up @@ -499,10 +499,10 @@ function EditItem(props: {
new Date(props.item.dateFound)
.toISOString()
.substring(0, 10) +
"T" +
(props.item.timeFound.trim().length > 4
? props.item.timeFound.trim()
: "0" + props.item.timeFound.trim())
"T" +
(props.item.timeFound.trim().length > 4
? props.item.timeFound.trim()
: "0" + props.item.timeFound.trim())
),
name: props.item.name,
whereFound: props.item.whereFound,
Expand Down

0 comments on commit 551e6bd

Please sign in to comment.