Allow overriding the logo click destination for tools

This commit is contained in:
Jackson Harper 2023-02-03 14:44:07 +08:00
parent 1458395630
commit 0a4774828d
2 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,7 @@ import { OmnivoreNameLogo } from '../elements/images/OmnivoreNameLogo'
import { theme } from '../tokens/stitches.config'
type ProfileLayoutProps = {
logoDestination?: string
children: React.ReactNode
}
@ -46,7 +47,7 @@ export function ProfileLayout(props: ProfileLayoutProps): JSX.Element {
>
<OmnivoreNameLogo
color={theme.colors.omnivoreGray.toString()}
href="/login"
href={props.logoDestination ?? '/login'}
/>
</HStack>
</Box>

View file

@ -67,7 +67,7 @@ export default function ImportUploader(): JSX.Element {
}
return (
<ProfileLayout>
<ProfileLayout logoDestination="/home">
<VStack
alignment="start"
css={{