From 920ee6d7961a1dc269a122c4d93e4a9baceb4f49 Mon Sep 17 00:00:00 2001 From: User Date: Sun, 21 Jul 2024 19:18:09 -0500 Subject: [PATCH 1/3] Format --- frontend/src/components/Common/Navbar.tsx | 2 +- frontend/src/routes/_layout/admin.tsx | 4 ++-- frontend/src/routes/_layout/items.tsx | 4 ++-- frontend/src/routes/login.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/Common/Navbar.tsx b/frontend/src/components/Common/Navbar.tsx index 1579a33b27..2aba31c362 100644 --- a/frontend/src/components/Common/Navbar.tsx +++ b/frontend/src/components/Common/Navbar.tsx @@ -1,4 +1,4 @@ -import { ComponentType, ElementType } from 'react'; +import type { ComponentType, ElementType } from "react" import { Button, Flex, Icon, useDisclosure } from "@chakra-ui/react" import { FaPlus } from "react-icons/fa" diff --git a/frontend/src/routes/_layout/admin.tsx b/frontend/src/routes/_layout/admin.tsx index b9724c4c19..9ecddadf93 100644 --- a/frontend/src/routes/_layout/admin.tsx +++ b/frontend/src/routes/_layout/admin.tsx @@ -18,9 +18,9 @@ import { createFileRoute } from "@tanstack/react-router" import { Suspense } from "react" import { type UserPublic, UsersService } from "../../client" +import AddUser from "../../components/Admin/AddUser" import ActionsMenu from "../../components/Common/ActionsMenu" import Navbar from "../../components/Common/Navbar" -import AddUser from "../../components/Admin/AddUser" export const Route = createFileRoute("/_layout/admin")({ component: Admin, @@ -94,7 +94,7 @@ function Admin() { User Management - + diff --git a/frontend/src/routes/_layout/items.tsx b/frontend/src/routes/_layout/items.tsx index fb66e2418d..e66650f5ae 100644 --- a/frontend/src/routes/_layout/items.tsx +++ b/frontend/src/routes/_layout/items.tsx @@ -1,4 +1,3 @@ -import { z } from "zod" import { Button, Container, @@ -15,6 +14,7 @@ import { } from "@chakra-ui/react" import { useQuery, useQueryClient } from "@tanstack/react-query" import { createFileRoute, useNavigate } from "@tanstack/react-router" +import { z } from "zod" import { useEffect } from "react" import { ItemsService } from "../../client" @@ -136,7 +136,7 @@ function Items() { Items Management - + ) diff --git a/frontend/src/routes/login.tsx b/frontend/src/routes/login.tsx index dd9ab407f9..2c35208c71 100644 --- a/frontend/src/routes/login.tsx +++ b/frontend/src/routes/login.tsx @@ -103,7 +103,7 @@ function Login() { Date: Sun, 21 Jul 2024 19:18:35 -0500 Subject: [PATCH 2/3] Update biome.json --- frontend/biome.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/biome.json b/frontend/biome.json index 1c2adb8db0..b6e397eb49 100644 --- a/frontend/biome.json +++ b/frontend/biome.json @@ -4,7 +4,7 @@ "enabled": true }, "files": { - "ignore": ["node_modules", "src/routeTree.gen.ts"] + "ignore": ["node_modules", "src/client/", "src/routeTree.gen.ts"] }, "linter": { "enabled": true, From b09b61a5f8c16bde12b15a246522ac94922b7530 Mon Sep 17 00:00:00 2001 From: User Date: Sun, 21 Jul 2024 19:30:42 -0500 Subject: [PATCH 3/3] Update imports --- frontend/src/routes/_layout/items.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/_layout/items.tsx b/frontend/src/routes/_layout/items.tsx index e66650f5ae..4b618c127e 100644 --- a/frontend/src/routes/_layout/items.tsx +++ b/frontend/src/routes/_layout/items.tsx @@ -14,9 +14,9 @@ import { } from "@chakra-ui/react" import { useQuery, useQueryClient } from "@tanstack/react-query" import { createFileRoute, useNavigate } from "@tanstack/react-router" +import { useEffect } from "react" import { z } from "zod" -import { useEffect } from "react" import { ItemsService } from "../../client" import ActionsMenu from "../../components/Common/ActionsMenu" import Navbar from "../../components/Common/Navbar"