From d4f31c418b064d1c5e60ab27ba37109b45ab4e67 Mon Sep 17 00:00:00 2001 From: Arie Trouw Date: Tue, 29 Oct 2024 18:20:25 -0700 Subject: [PATCH] version allows string in appbar --- packages/appbar/src/Toolbar/Context/ContextToolbar.tsx | 2 +- packages/appbar/src/Toolbar/Context/LogoLinkEx.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/appbar/src/Toolbar/Context/ContextToolbar.tsx b/packages/appbar/src/Toolbar/Context/ContextToolbar.tsx index 2725193b..75dfec93 100644 --- a/packages/appbar/src/Toolbar/Context/ContextToolbar.tsx +++ b/packages/appbar/src/Toolbar/Context/ContextToolbar.tsx @@ -8,7 +8,7 @@ import { LogoLinkEx } from './LogoLinkEx.tsx' export interface ContextToolbarProps extends ToolbarProps { logo?: React.ReactNode logoTo?: To - version?: boolean + version?: boolean | string } export const ContextToolbar: React.FC = ({ diff --git a/packages/appbar/src/Toolbar/Context/LogoLinkEx.tsx b/packages/appbar/src/Toolbar/Context/LogoLinkEx.tsx index a256442e..b432759a 100644 --- a/packages/appbar/src/Toolbar/Context/LogoLinkEx.tsx +++ b/packages/appbar/src/Toolbar/Context/LogoLinkEx.tsx @@ -41,7 +41,7 @@ export const LogoLinkEx: React.FC = ({ variant="caption" border={`1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid`} > - {typeof version === 'string' ? version : '2.1'} + {typeof version === 'string' ? version : '1.0'} ) : null}