Skip to content

Commit

Permalink
[FIX] - Repaired broken link
Browse files Browse the repository at this point in the history
  • Loading branch information
nulzo committed Nov 25, 2023
1 parent 20eb143 commit 09ecfd8
Show file tree
Hide file tree
Showing 6 changed files with 217 additions and 347 deletions.
4 changes: 3 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<title>CSLC Tutoring Portal</title>
</head>

<body class="overscroll-none antialiased text-foreground min-h-screen">
<body
class="overscroll-none antialiased text-foreground min-h-screen w-[100vw]"
>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/navigation/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export default function Navbar() {
<Tooltip>
<TooltipTrigger asChild>
<Button variant="outline" size="icon">
<GithubIcon size={20} />
<a href="https://github.com/nulzo/University-Nebraska-Tutor-Portal">
<GithubIcon size={20} />
</a>
</Button>
</TooltipTrigger>
<TooltipContent className="bg-background border border-border text-foreground">
Expand Down
11 changes: 7 additions & 4 deletions frontend/src/components/navigation/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
import { useIsAuthenticated, useMsal } from "@azure/msal-react";
import { useQueryClient } from "@tanstack/react-query";

const isAdmin = false;
const isAdmin = true;
const isTutor = true;
const isStudent = false;
const isDeveloper = false;
Expand Down Expand Up @@ -109,6 +109,9 @@ export function Sidebar({ isPopout = false }: any) {
strokeWidth={stroke_width}
/>
}
notification={
Object(useQueryClient().getQueryData(["new-ticket"])).length !== 0
}
/>
<Navlink
className="w-full justify-start"
Expand Down Expand Up @@ -502,21 +505,21 @@ export function Sidebar({ isPopout = false }: any) {
<div className="">
<HomeSection />
{/* If the user is an admin */}
{isAdmin && !(isTutor || isStudent) && (
{isAdmin && (
<>
<AdminSection />
<GeneralSection />
</>
)}
{/* If the user is a tutor */}
{isTutor && !(isStudent || isAdmin) && (
{isTutor && (
<>
<TutorSection />
<GeneralSection />
</>
)}
{/* If the user is a student */}
{isStudent && !(isTutor || isAdmin) && <GeneralSection />}
{isStudent && <GeneralSection />}
{/* If the user is a developer */}
{isDeveloper && <DevSettings />}
{isAuthenticated && <AccountSettings />}
Expand Down
Loading

0 comments on commit 09ecfd8

Please sign in to comment.