From 03be55a1bae1f37c6364a90d41069d0b36e1ce5d Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Wed, 13 Dec 2023 20:14:34 -0300 Subject: [PATCH] feat(pageLayout): add support for displaying a beta icon in the page title feat(StorePage): enable beta icon in the PageLayout component style(applies.css): adjust styles for the beta icon in the page title --- src/frontend/src/components/pageLayout/index.tsx | 7 ++++++- src/frontend/src/pages/StorePage/index.tsx | 1 + src/frontend/src/style/applies.css | 8 ++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/components/pageLayout/index.tsx b/src/frontend/src/components/pageLayout/index.tsx index c6bc9de47..9af894730 100644 --- a/src/frontend/src/components/pageLayout/index.tsx +++ b/src/frontend/src/components/pageLayout/index.tsx @@ -6,11 +6,13 @@ export default function PageLayout({ description, children, button, + betaIcon, }: { title: string; description: string; children: React.ReactNode; button?: React.ReactNode; + betaIcon: boolean; }) { return (
@@ -18,7 +20,10 @@ export default function PageLayout({
-

{title}

+

+ {title} + {betaIcon && BETA} +

{description}

{button && button}
diff --git a/src/frontend/src/pages/StorePage/index.tsx b/src/frontend/src/pages/StorePage/index.tsx index 43067c7e3..dc2e4db37 100644 --- a/src/frontend/src/pages/StorePage/index.tsx +++ b/src/frontend/src/pages/StorePage/index.tsx @@ -164,6 +164,7 @@ export default function StorePage(): JSX.Element { return (