Skip to content

Commit 8b68490

Browse files
authoredMar 17, 2025··
fix(studio): use correct logo in dark mode (#8961)
1 parent 0e336f8 commit 8b68490

File tree

1 file changed

+3
-5
lines changed
  • packages/sanity/src/core/studio/components/navbar/workspace/WorkspaceAuth

1 file changed

+3
-5
lines changed
 

‎packages/sanity/src/core/studio/components/navbar/workspace/WorkspaceAuth/Layout.tsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import {SanityLogo} from '@sanity/logos'
2-
import {Box, Card, Flex, Heading, Stack, Text} from '@sanity/ui'
2+
import {Box, Card, Flex, Heading, Stack, Text, usePrefersDark} from '@sanity/ui'
33
import {Fragment, type ReactNode} from 'react'
44
import {styled} from 'styled-components'
55

6-
import {useTranslation} from '../../../../../i18n'
7-
86
const LINKS = [
97
{
108
url: 'https://slack.sanity.io/',
@@ -42,7 +40,7 @@ interface LayoutProps {
4240

4341
export function Layout(props: LayoutProps) {
4442
const {children, footer, header} = props
45-
const {t} = useTranslation()
43+
const prefersDark = usePrefersDark()
4644

4745
return (
4846
<Stack space={6}>
@@ -69,7 +67,7 @@ export function Layout(props: LayoutProps) {
6967

7068
<Flex direction="column" gap={4} justify="center" align="center" paddingBottom={4}>
7169
<Text size={3}>
72-
<SanityLogo />
70+
<SanityLogo dark={prefersDark} />
7371
</Text>
7472

7573
<Flex align="center" gap={2}>

0 commit comments

Comments
 (0)
Please sign in to comment.