Skip to content

Commit 112f650

Browse files
committed
πŸ―πŸ† ↝ removing some extra stuff for build purposes
1 parent 2782188 commit 112f650

14 files changed

+8
-1007
lines changed

β€Žcomponents/Section/NavItem.tsx

-35
This file was deleted.

β€Žcomponents/Section/Navbar.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Avatar, AvatarFallback, AvatarImage } from "../ui/Avatar";
1+
// import { Avatar, AvatarFallback, AvatarImage } from "../ui/Avatar";
22
import { useEffect, Fragment, useState, useRef } from "react";
33
import Link from "next/link";
44
import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react";
@@ -479,9 +479,9 @@ export function Navbar() {
479479
</Popover.Group>
480480
<div className="hidden lg:flex lg:flex-1 lg:justify-end">
481481
<Link href="/profile">
482-
<Avatar className="cursor-pointer rounded-md">
482+
{/* <Avatar className="cursor-pointer rounded-md">
483483
<AvatarImage src="https://avatars.githubusercontent.com/u/78838067?s=200&v=4" />
484-
</Avatar>
484+
</Avatar> */}
485485
</Link>
486486
</div>
487487
</nav>
@@ -555,9 +555,9 @@ export function Navbar() {
555555
</div>
556556
<div className="py-6">
557557
<Link href="/profile">
558-
<Avatar className="cursor-pointer rounded-md">
558+
{/* <Avatar className="cursor-pointer rounded-md">
559559
<AvatarImage src="https://avatars.githubusercontent.com/u/78838067?s=200&v=4" />
560-
</Avatar>
560+
</Avatar> */}
561561
</Link>
562562
</div>
563563
</div>

β€Žcomponents/Section/Sidebar.tsx

+3-39
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Avatar, AvatarFallback, AvatarImage } from "../ui/Avatar";
21
import {
32
BellRing,
43
Bug,
@@ -15,9 +14,7 @@ import {
1514
} from "lucide-react";
1615
import Link from "next/link";
1716
import { usePathname, useRouter, useSearchParams } from "next/navigation";
18-
import React, { useEffect, useState } from "react";
19-
import NavItem from "./NavItem";
20-
import { Button } from "../ui/Button";
17+
import React, { useEffect, useState } from "react";
2118

2219
const navCategoryItems = [
2320
{
@@ -83,57 +80,24 @@ const Sidebar: React.FC = () => {
8380
Components
8481
</h2>
8582
<ul className="space-y-4">
86-
{navCategoryItems.map((item, idx) => (
87-
<NavItem {...item} key={idx} active={pathname === item.url} />
88-
))}
8983
</ul>
9084

9185
<h2 className="text-lg font-bold mt-4 text-foreground/70">
9286
Your stuff
9387
</h2>
9488
<ul className="space-y-4 mt-4">
95-
{navSettingItems.map((item, idx) => (
96-
<NavItem {...item} key={idx} active={pathname === item.url} />
97-
))}
98-
{user.role === "developer" && (
99-
<NavItem
100-
url="/reported-post"
101-
label="Reported Post"
102-
Icon={Megaphone}
103-
active={pathname === "/reported-post"}
104-
/>
105-
)}
10689
</ul>
10790
</div>
10891

10992
<div>
11093
<div className="flex items-start gap-2">
111-
<Avatar className="rounded-full">
112-
<AvatarImage src={user.image ?? ""} />
113-
<AvatarFallback className="rounded-full">
114-
{user.username && user.username[0].toUpperCase()}
115-
</AvatarFallback>
116-
</Avatar>
11794
</div>
11895

119-
<Button
120-
className="w-full flex items-center space-x-2 justify-start mt-4 bg-white lg:hidden"
121-
variant="outline"
122-
onClick={() => setOpenAside(false)}
123-
>
124-
<Menu className="w-6 aspect-square" />
125-
<span>Menu</span>
126-
</Button>
96+
12797
</div>
12898
</aside>
12999
<div className="fixed lg:hidden bottom-0 p-4 inset-x-0 z-10 bg-white supports-[backdrop-filter]:bg-white/60 border-t supports-[backdrop-filter]:backdrop-blur-md">
130-
<Button
131-
onClick={() => setOpenAside(true)}
132-
className="w-full flex items-center justify-start space-x-2"
133-
>
134-
<Menu className="w-6 aspect-square" />
135-
<span>Menu</span>
136-
</Button>
100+
137101
</div>
138102
</>
139103
);

β€Žcomponents/ui/Avatar.tsx

-48
This file was deleted.

β€Žcomponents/ui/Button.tsx

-57
This file was deleted.

β€Žcomponents/ui/Card.tsx

-82
This file was deleted.

0 commit comments

Comments
Β (0)