From cfa944350da0203f4e8c3e76629bc61aec283da9 Mon Sep 17 00:00:00 2001 From: Ryo Okubo Date: Sat, 16 Sep 2023 22:42:04 +0900 Subject: [PATCH] Show login user name on the header --- frontend/src/components/Header.tsx | 5 +++++ frontend/src/services/DjangoContext.ts | 2 ++ templates/frontend/index.html | 1 + 3 files changed, 8 insertions(+) diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index 8d2d08add..77c75578b 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -197,6 +197,11 @@ export const Header: FC = () => { keepMounted disableScrollLock > + + {djangoContext?.user?.username ?? "不明なユーザ"}{" "} + としてログイン中 + +