From b0c08a6a06ead7f1603cdc46c8d7fbb90a49dd6f Mon Sep 17 00:00:00 2001 From: Afo Date: Sun, 15 Sep 2024 15:32:55 -0700 Subject: [PATCH] fixed lint errors --- packages/client/src/App.tsx | 2 +- packages/client/src/views/Gardens/Garden.tsx | 4 ++-- packages/client/src/views/Work/index.tsx | 11 ++++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/client/src/App.tsx b/packages/client/src/App.tsx index 0d507df..8fcabd5 100644 --- a/packages/client/src/App.tsx +++ b/packages/client/src/App.tsx @@ -21,7 +21,7 @@ function App() { const { isMobile, isInstalled } = usePWA(); const { authenticating, smartAccountReady } = useUser(); - const isDownloaded = isMobile; + const isDownloaded = isMobile && isInstalled; const isAuthenticated = authenticated && smartAccountReady; return ( diff --git a/packages/client/src/views/Gardens/Garden.tsx b/packages/client/src/views/Gardens/Garden.tsx index 14f8472..db2fc51 100644 --- a/packages/client/src/views/Gardens/Garden.tsx +++ b/packages/client/src/views/Gardens/Garden.tsx @@ -2,7 +2,7 @@ import { RiMapPin2Fill, RiArrowGoBackLine, RiCalendarEventFill, - RiProfileFill, + // RiProfileFill, // RiThumbUpFill, // PencilLineIcon, } from "@remixicon/react"; @@ -48,7 +48,7 @@ export const Garden: React.FC = () => { ); - const { name, bannerImage, location, operators, gardenAssessments } = garden; + const { name, bannerImage, location, gardenAssessments } = garden; const gardenWorks = works.filter((work) => work.gardenAddress === id); const gardenGardeners = gardeners.filter((gardener) => diff --git a/packages/client/src/views/Work/index.tsx b/packages/client/src/views/Work/index.tsx index 86cfef8..2ffd77b 100644 --- a/packages/client/src/views/Work/index.tsx +++ b/packages/client/src/views/Work/index.tsx @@ -1,12 +1,13 @@ +import { Link } from "react-router-dom"; +import { RiArrowGoBackLine } from "@remixicon/react"; + import { useWork, WorkTab } from "@/providers/WorkProvider"; +import { Button } from "@/components/Button"; import { WorkIntro } from "./Intro"; import { WorkMedia } from "./Media"; import { WorkDetails } from "./Details"; import { WorkReview } from "./Review"; -import { Link, useNavigate } from "react-router-dom"; -import { RiArrowGoBackLine } from "@remixicon/react"; -import { Button } from "@/components/Button"; interface WorkProps {} @@ -30,10 +31,10 @@ const actionContent = { }; const Work: React.FC = () => { - const navigate = useNavigate(); + // const navigate = useNavigate(); const { actions, form, activeTab, setActiveTab } = useWork(); - const actionOnClick = {}; + // const actionOnClick = {}; if (!form) { return null;