Skip to content

Commit

Permalink
Add revenue dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
PoserDungeon2003 committed Nov 16, 2023
1 parent 72010d7 commit bb63024
Show file tree
Hide file tree
Showing 3 changed files with 278 additions and 140 deletions.
15 changes: 15 additions & 0 deletions frontend/my-app/src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
import { type } from "os";
export type MonthlyData = {
year?: number | null;
firstMonth: number;
secondMonth: number;
thirdMonth: number;
fourthMonth: number;
fifthMonth: number;
sixthMonth: number;
seventhMonth: number;
eighthMonth: number;
ninthMonth: number;
tenthMonth: number;
eleventhMonth: number;
twelfthMonth: number;
}
export type InstructorInfo = {
id: number;
fullName: string;
Expand Down
4 changes: 3 additions & 1 deletion frontend/my-app/src/routes/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@
<NavHamburger />
</div>
<NavUl>
{#if jwtData.role == "CUSTOMER"}
{#if jwtData.role === "CUSTOMER"}
<NavLi href="/mylearning">My Learning</NavLi>
<NavLi href="/cart">Your Cart</NavLi>
{:else if jwtData.role === "STAFF"}
<NavLi href="/staff/revenuestatistics">Staff Management Dashboard</NavLi>
{:else}
<NavLi href="/teaching">Assign Instructor</NavLi>
{/if}
Expand Down
Loading

0 comments on commit bb63024

Please sign in to comment.