From 62dfa81152119160bb8a8d15107d0272aa2693f7 Mon Sep 17 00:00:00 2001 From: tungphan1011 Date: Sun, 5 Nov 2023 12:28:03 +0700 Subject: [PATCH] update header --- frontend/my-app/src/routes/Header.svelte | 25 ++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/frontend/my-app/src/routes/Header.svelte b/frontend/my-app/src/routes/Header.svelte index bf0c427..5109da0 100644 --- a/frontend/my-app/src/routes/Header.svelte +++ b/frontend/my-app/src/routes/Header.svelte @@ -83,15 +83,27 @@ }); } } + +> + {#if jwtData.role == "Customer"|| jwtData.role == ""} Ademy Logo + {:else if jwtData.role == "STAFF"} + + Ademy Logo + + {:else} + + Ademy Logo + + {/if} +