{
reset={() => refetch()}
/>
);
- }
-
return (
All Available Products:
diff --git a/src/components/sections/PopularProductsSection.tsx b/src/components/sections/PopularProductsSection.tsx
index 26baa7e..74ca977 100644
--- a/src/components/sections/PopularProductsSection.tsx
+++ b/src/components/sections/PopularProductsSection.tsx
@@ -25,11 +25,9 @@ const ProductComponent = () => {
refetchOnWindowFocus: false,
});
- if (isLoading) {
- return ;
- }
+ if (isLoading) return ;
- if (isError) {
+ if (isError)
return (
{
reset={() => refetch()}
/>
);
- }
return (
<>
diff --git a/src/components/sections/ProductSuggestionSection.tsx b/src/components/sections/ProductSuggestionSection.tsx
index 89fbb34..24fd12b 100644
--- a/src/components/sections/ProductSuggestionSection.tsx
+++ b/src/components/sections/ProductSuggestionSection.tsx
@@ -32,11 +32,9 @@ const ProductSuggestionSection = ({ product }: ProductSuggestionSectionProps) =>
refetchOnWindowFocus: false,
});
- if (isLoading) {
- return ;
- }
+ if (isLoading) return ;
- if (isError) {
+ if (isError)
return (
reset={() => refetch()}
/>
);
- }
return (
<>
diff --git a/src/hooks/useLocalStorage.tsx b/src/hooks/useLocalStorage.tsx
index b2f3a21..8890e65 100644
--- a/src/hooks/useLocalStorage.tsx
+++ b/src/hooks/useLocalStorage.tsx
@@ -11,7 +11,6 @@ const useLocalStorage = (key: string, initialValue: T): [T, (value: T | ((pr
if (item) {
setStoredValue(JSON.parse(item) as T);
}
- // eslint-disable-next-line
}, []);
const setValue = (value: T | ((prop: T) => T)) => {