Skip to content

Commit

Permalink
chore: remove recruitment advertisement
Browse files Browse the repository at this point in the history
  • Loading branch information
Sampiiiii committed Nov 23, 2024
1 parent b6fdf71 commit cf8aa8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
21 changes: 1 addition & 20 deletions apps/forge/src/components/app-navigation/nav-user.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { UserAvatar } from "@/components/avatar";
import { useUserRoles } from "@/hooks/useUserRoles";
import { useUser } from "@/lib/utils";
import { useTheme } from "@/providers/themeProvider/use-theme";
import { Button } from "@ignis/ui/components/ui/button";
Expand All @@ -15,11 +14,10 @@ import {
import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from "@ignis/ui/components/ui/sidebar";
import { Link } from "@tanstack/react-router";
import { Shortcut } from "@ui/components/ui/kbd";
import { BadgeCheck, Bell, ChevronsUpDown, LogIn, LogOut, Moon, Settings, Sparkles, Sun } from "lucide-react";
import { BadgeCheck, Bell, ChevronsUpDown, LogIn, LogOut, Moon, Settings, Sun } from "lucide-react";

export function NavUser() {
const user = useUser();
const isRep = useUserRoles().includes("rep");
const { isMobile, state } = useSidebar();
const { setTheme, theme } = useTheme();

Expand Down Expand Up @@ -79,23 +77,6 @@ export function NavUser() {
</div>
</DropdownMenuLabel>
<DropdownMenuSeparator />
{!isRep && (
<>
<DropdownMenuGroup>
<a
href="https://docs.google.com/forms/d/e/1FAIpQLSfRTTBDKCd_kZkVLBHW2LI_GHKkYTwyLWcLkqu7E5AemxJKaw/viewform"
rel="noreferrer"
target="_blank"
>
<DropdownMenuItem>
<Sparkles className="mr-2 h-4 w-4" />
Apply to become a rep!
</DropdownMenuItem>
</a>
</DropdownMenuGroup>
<DropdownMenuSeparator />
</>
)}
<DropdownMenuGroup>
<DropdownMenuItem asChild>
<Link to="/user/me">
Expand Down
2 changes: 0 additions & 2 deletions apps/forge/src/components/app-navigation/sidebar-header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import NavAdvertisementBanner from "@/components/app-navigation/nav-advertisementbanner";
import { SidebarTrigger } from "@ignis/ui/components/ui/sidebar";

export const SidebarHeader = () => {
Expand All @@ -7,7 +6,6 @@ export const SidebarHeader = () => {
<div className="flex items-center gap-2 px-4">
<SidebarTrigger className="-ml-1 h-5 w-5" />
</div>
<NavAdvertisementBanner />
</header>
);
};

0 comments on commit cf8aa8a

Please sign in to comment.