Skip to content

Commit

Permalink
Update Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ataideverton committed Jun 13, 2024
1 parent c9dda79 commit af0dd6d
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions react/components/QuickOrderAutocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ const CustomOption = (props: any) => {
)
}

const buttonClasses = `${handles.customOptionButton
} bn w-100 tl pointer pa4 f6 ${roundedBottom ? 'br2 br--bottom' : ''} ${highlightOption || selected ? 'bg-muted-5' : 'bg-base'
}`
const buttonClasses = `${
handles.customOptionButton
} bn w-100 tl pointer pa4 f6 ${roundedBottom ? 'br2 br--bottom' : ''} ${
highlightOption || selected ? 'bg-muted-5' : 'bg-base'
}`

const thumb = value.thumb ? value.thumb : ''

Expand Down Expand Up @@ -114,17 +116,17 @@ const QuickOrderAutocomplete: FunctionComponent<
value: !term.length
? []
: optionsResult
.filter((item: any) => {
return !!item.items[0].images[0].imageUrl
})
.map((item: any) => {
return {
value: item.items[0].itemId,
label: item.productName,
slug: item.linkText,
thumb: getImageSrc(item.items[0].images[0].imageUrl),
}
}),
.filter((item: any) => {
return !!item.items[0].images[0].imageUrl
})
.map((item: any) => {
return {
value: item.items[0].itemId,
label: item.productName,
slug: item.linkText,
thumb: getImageSrc(item.items[0].images[0].imageUrl),
}
}),
lastSearched: {
value: lastSearched,
label: 'Last searched products',
Expand Down Expand Up @@ -154,7 +156,7 @@ const QuickOrderAutocomplete: FunctionComponent<
setTerm(nterm)
}
},
onSearch: () => () => { },
onSearch: () => () => {},
onClear: () => setTerm(''),
placeholder: intl.formatMessage(messages.placeholder),
value: term,
Expand Down

0 comments on commit af0dd6d

Please sign in to comment.