mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Allow overriding the logo click destination for tools
This commit is contained in:
parent
1458395630
commit
0a4774828d
2 changed files with 3 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ export default function ImportUploader(): JSX.Element {
|
|||
}
|
||||
|
||||
return (
|
||||
<ProfileLayout>
|
||||
<ProfileLayout logoDestination="/home">
|
||||
<VStack
|
||||
alignment="start"
|
||||
css={{
|
||||
|
|
|
|||
Loading…
Reference in a new issue