Skip to content

Commit c6f8e5e

Browse files
committed
🔥 Remove common components
1 parent e819457 commit c6f8e5e

File tree

7 files changed

+16
-331
lines changed

7 files changed

+16
-331
lines changed

frontend/src/components/Common/ItemActionsMenu.tsx

Lines changed: 0 additions & 26 deletions
This file was deleted.

frontend/src/components/Common/Navbar.tsx

Lines changed: 0 additions & 32 deletions
This file was deleted.

frontend/src/components/Common/NotFound.tsx

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,30 @@
1-
import { Button, Center, Flex, Text } from "@chakra-ui/react"
21
import { Link } from "@tanstack/react-router"
2+
import { Button } from "@/components/ui/button"
33

44
const NotFound = () => {
55
return (
6-
<Flex
7-
height="100vh"
8-
align="center"
9-
justify="center"
10-
flexDir="column"
6+
<div
7+
className="flex min-h-screen items-center justify-center flex-col p-4"
118
data-testid="not-found"
12-
p={4}
139
>
14-
<Flex alignItems="center" zIndex={1}>
15-
<Flex flexDir="column" ml={4} align="center" justify="center" p={4}>
16-
<Text
17-
fontSize={{ base: "6xl", md: "8xl" }}
18-
fontWeight="bold"
19-
lineHeight="1"
20-
mb={4}
21-
>
10+
<div className="flex items-center z-10">
11+
<div className="flex flex-col ml-4 items-center justify-center p-4">
12+
<span className="text-6xl md:text-8xl font-bold leading-none mb-4">
2213
404
23-
</Text>
24-
<Text fontSize="2xl" fontWeight="bold" mb={2}>
25-
Oops!
26-
</Text>
27-
</Flex>
28-
</Flex>
14+
</span>
15+
<span className="text-2xl font-bold mb-2">Oops!</span>
16+
</div>
17+
</div>
2918

30-
<Text fontSize="lg" color="gray.600" mb={4} textAlign="center" zIndex={1}>
19+
<p className="text-lg text-muted-foreground mb-4 text-center z-10">
3120
The page you are looking for was not found.
32-
</Text>
33-
<Center zIndex={1}>
21+
</p>
22+
<div className="z-10">
3423
<Link to="/">
35-
<Button variant="solid" colorScheme="teal" mt={4} alignSelf="center">
36-
Go Back
37-
</Button>
24+
<Button className="mt-4">Go Back</Button>
3825
</Link>
39-
</Center>
40-
</Flex>
26+
</div>
27+
</div>
4128
)
4229
}
4330

frontend/src/components/Common/Sidebar.tsx

Lines changed: 0 additions & 97 deletions
This file was deleted.

frontend/src/components/Common/SidebarItems.tsx

Lines changed: 0 additions & 61 deletions
This file was deleted.

frontend/src/components/Common/UserActionsMenu.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

frontend/src/components/Common/UserMenu.tsx

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)