From af0dd6d1371f055f017bb10eed950e5b9274c0ca Mon Sep 17 00:00:00 2001 From: Everton Ataide Date: Thu, 13 Jun 2024 13:56:27 -0300 Subject: [PATCH] Update Lint --- react/components/QuickOrderAutocomplete.tsx | 32 +++++++++++---------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/react/components/QuickOrderAutocomplete.tsx b/react/components/QuickOrderAutocomplete.tsx index fe796f41..2b0606a8 100644 --- a/react/components/QuickOrderAutocomplete.tsx +++ b/react/components/QuickOrderAutocomplete.tsx @@ -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 : '' @@ -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', @@ -154,7 +156,7 @@ const QuickOrderAutocomplete: FunctionComponent< setTerm(nterm) } }, - onSearch: () => () => { }, + onSearch: () => () => {}, onClear: () => setTerm(''), placeholder: intl.formatMessage(messages.placeholder), value: term,