Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Common/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/routes/_layout/admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -94,7 +94,7 @@ function Admin() {
<Heading size="lg" textAlign={{ base: "center", md: "left" }} pt={12}>
User Management
</Heading>
<Navbar type={"User"} addModalAs={AddUser}/>
<Navbar type={"User"} addModalAs={AddUser} />
<TableContainer>
<Table fontSize="md" size={{ base: "sm", md: "md" }}>
<Thead>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/routes/_layout/items.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { z } from "zod"
import {
Button,
Container,
Expand All @@ -15,8 +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 { ItemsService } from "../../client"
import ActionsMenu from "../../components/Common/ActionsMenu"
import Navbar from "../../components/Common/Navbar"
Expand Down Expand Up @@ -136,7 +136,7 @@ function Items() {
Items Management
</Heading>

<Navbar type={"Item"} addModalAs={AddItem}/>
<Navbar type={"Item"} addModalAs={AddItem} />
<ItemsTable />
</Container>
)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function Login() {
<InputGroup>
<Input
{...register("password", {
required: "Password is required",
required: "Password is required",
})}
type={show ? "text" : "password"}
placeholder="Password"
Expand Down