From 13625d722a421441c1edc6eb1256b7e20f20544d Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 26 Nov 2023 02:36:07 -0800 Subject: use SSR for rendering graph + transition demo to PhaseConnect - I like Phase Connect --- src/components/TitleBar/TitleBar.tsx | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'src/components/TitleBar/TitleBar.tsx') diff --git a/src/components/TitleBar/TitleBar.tsx b/src/components/TitleBar/TitleBar.tsx index 85fbfbd..05a0e5d 100644 --- a/src/components/TitleBar/TitleBar.tsx +++ b/src/components/TitleBar/TitleBar.tsx @@ -1,25 +1,29 @@ import React from 'react'; +import '../TitleBar/TitleBarStyle.css' interface TitleBarProps { title: string; redirectUrl?: string; showHomeButton?: boolean; + backgroundColor?: string; } -const TitleBar: React.FC = ({ title, redirectUrl, showHomeButton }) => { +const TitleBar: React.FC = ({ title, redirectUrl, showHomeButton, backgroundColor }) => { return ( -
-
- - {title} - - {showHomeButton && ( - - + <> +
+
+ + {title} - )} + {showHomeButton && ( + + + + )} +
-
+ ); }; -- cgit v1.2.3