Skip to content

Commit

Permalink
version allows string in appbar
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Oct 30, 2024
1 parent 6dc0617 commit d4f31c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/appbar/src/Toolbar/Context/ContextToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ContextToolbarProps> = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/appbar/src/Toolbar/Context/LogoLinkEx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const LogoLinkEx: React.FC<LogoLinkExProps> = ({
variant="caption"
border={`1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid`}
>
{typeof version === 'string' ? version : '2.1'}
{typeof version === 'string' ? version : '1.0'}
</Typography>
)
: null}
Expand Down

0 comments on commit d4f31c4

Please sign in to comment.