Skip to content

Commit 326b356

Browse files
authored
🎨 Format frontend (fastapi#1262)
1 parent f372eb0 commit 326b356

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

frontend/biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"enabled": true
55
},
66
"files": {
7-
"ignore": ["node_modules", "src/routeTree.gen.ts"]
7+
"ignore": ["node_modules", "src/client/", "src/routeTree.gen.ts"]
88
},
99
"linter": {
1010
"enabled": true,

frontend/src/components/Common/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ComponentType, ElementType } from 'react';
1+
import type { ComponentType, ElementType } from "react"
22

33
import { Button, Flex, Icon, useDisclosure } from "@chakra-ui/react"
44
import { FaPlus } from "react-icons/fa"

frontend/src/routes/_layout/admin.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import { createFileRoute } from "@tanstack/react-router"
1818

1919
import { Suspense } from "react"
2020
import { type UserPublic, UsersService } from "../../client"
21+
import AddUser from "../../components/Admin/AddUser"
2122
import ActionsMenu from "../../components/Common/ActionsMenu"
2223
import Navbar from "../../components/Common/Navbar"
23-
import AddUser from "../../components/Admin/AddUser"
2424

2525
export const Route = createFileRoute("/_layout/admin")({
2626
component: Admin,
@@ -94,7 +94,7 @@ function Admin() {
9494
<Heading size="lg" textAlign={{ base: "center", md: "left" }} pt={12}>
9595
User Management
9696
</Heading>
97-
<Navbar type={"User"} addModalAs={AddUser}/>
97+
<Navbar type={"User"} addModalAs={AddUser} />
9898
<TableContainer>
9999
<Table fontSize="md" size={{ base: "sm", md: "md" }}>
100100
<Thead>

frontend/src/routes/_layout/items.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { z } from "zod"
21
import {
32
Button,
43
Container,
@@ -15,8 +14,9 @@ import {
1514
} from "@chakra-ui/react"
1615
import { useQuery, useQueryClient } from "@tanstack/react-query"
1716
import { createFileRoute, useNavigate } from "@tanstack/react-router"
18-
1917
import { useEffect } from "react"
18+
import { z } from "zod"
19+
2020
import { ItemsService } from "../../client"
2121
import ActionsMenu from "../../components/Common/ActionsMenu"
2222
import Navbar from "../../components/Common/Navbar"
@@ -136,7 +136,7 @@ function Items() {
136136
Items Management
137137
</Heading>
138138

139-
<Navbar type={"Item"} addModalAs={AddItem}/>
139+
<Navbar type={"Item"} addModalAs={AddItem} />
140140
<ItemsTable />
141141
</Container>
142142
)

frontend/src/routes/login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function Login() {
103103
<InputGroup>
104104
<Input
105105
{...register("password", {
106-
required: "Password is required",
106+
required: "Password is required",
107107
})}
108108
type={show ? "text" : "password"}
109109
placeholder="Password"

0 commit comments

Comments
 (0)