Skip to content

Commit

Permalink
fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Oba-One committed Sep 15, 2024
1 parent 2361e1d commit b0c08a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/views/Gardens/Garden.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
RiMapPin2Fill,
RiArrowGoBackLine,
RiCalendarEventFill,
RiProfileFill,
// RiProfileFill,
// RiThumbUpFill,
// PencilLineIcon,
} from "@remixicon/react";
Expand Down Expand Up @@ -48,7 +48,7 @@ export const Garden: React.FC<GardenProps> = () => {
</main>
);

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) =>
Expand Down
11 changes: 6 additions & 5 deletions packages/client/src/views/Work/index.tsx
Original file line number Diff line number Diff line change
@@ -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 {}

Expand All @@ -30,10 +31,10 @@ const actionContent = {
};

const Work: React.FC<WorkProps> = () => {
const navigate = useNavigate();
// const navigate = useNavigate();
const { actions, form, activeTab, setActiveTab } = useWork();

const actionOnClick = {};
// const actionOnClick = {};

if (!form) {
return null;
Expand Down

0 comments on commit b0c08a6

Please sign in to comment.