Alejandra
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with
8 additions and
8 deletions
-
frontend/biome.json
-
frontend/src/components/Common/Navbar.tsx
-
frontend/src/routes/_layout/admin.tsx
-
frontend/src/routes/_layout/items.tsx
-
frontend/src/routes/login.tsx
|
|
@ -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, |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -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() { |
|
|
|
<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> |
|
|
|
|
|
@ -1,4 +1,3 @@ |
|
|
|
import { z } from "zod" |
|
|
|
import { |
|
|
|
Button, |
|
|
|
Container, |
|
|
@ -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" |
|
|
@ -136,7 +136,7 @@ function Items() { |
|
|
|
Items Management |
|
|
|
</Heading> |
|
|
|
|
|
|
|
<Navbar type={"Item"} addModalAs={AddItem}/> |
|
|
|
<Navbar type={"Item"} addModalAs={AddItem} /> |
|
|
|
<ItemsTable /> |
|
|
|
</Container> |
|
|
|
) |
|
|
|
|
|
@ -103,7 +103,7 @@ function Login() { |
|
|
|
<InputGroup> |
|
|
|
<Input |
|
|
|
{...register("password", { |
|
|
|
required: "Password is required", |
|
|
|
required: "Password is required", |
|
|
|
})} |
|
|
|
type={show ? "text" : "password"} |
|
|
|
placeholder="Password" |
|
|
|