From eb5a366a129bdee47e0667d0d389eaea56a8deb4 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sat, 11 Jan 2025 20:48:22 +0100 Subject: [PATCH] [FEAT] add on air --- front/src/components/TopBar/TopBar.tsx | 19 ++- .../components/track/DisplayTrackFullId.tsx | 28 ++++ front/src/scene/AppRoutes.tsx | 2 + front/src/scene/artist/ArtistsPage.tsx | 2 +- front/src/scene/onAir/OnAirPage.tsx | 133 ++++++++++++++++++ 5 files changed, 181 insertions(+), 3 deletions(-) create mode 100644 front/src/components/track/DisplayTrackFullId.tsx create mode 100644 front/src/scene/onAir/OnAirPage.tsx diff --git a/front/src/components/TopBar/TopBar.tsx b/front/src/components/TopBar/TopBar.tsx index b38c362..03fd57d 100644 --- a/front/src/components/TopBar/TopBar.tsx +++ b/front/src/components/TopBar/TopBar.tsx @@ -39,6 +39,7 @@ import { colors } from '@/theme/foundations/colors'; import { requestSignIn, requestSignOut, requestSignUp } from '@/utils/sso'; import { useThemeMode } from '@/utils/theme-tools'; import { useSessionService } from '@/service/session'; +import { MdHome, MdOutlinePlaylistPlay, MdOutlineUploadFile } from 'react-icons/md'; export const TOP_BAR_HEIGHT = '50px'; @@ -81,6 +82,9 @@ export const TopBar = ({ title, children }: TopBarProps) => { const onSelectHome = () => { navigate('/'); }; + const onSelectOnAir = () => { + navigate('/on-air'); + }; const onHelp = () => { navigate('/help'); }; @@ -202,11 +206,22 @@ export const TopBar = ({ title, children }: TopBarProps) => { onClick={onSelectHome} width="full" > - + Home +