Skip to content

Commit dc80804

Browse files
authored
refactor: use @sanity/themer (#373)
1 parent d9d9c5b commit dc80804

15 files changed

Lines changed: 510 additions & 1385 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,4 @@ edge-utils
113113

114114
.sanity
115115
.turbo
116+
apps/v1/.env.local

apps/v1/components/CodeSnippetSetup.tsx

Lines changed: 0 additions & 268 deletions
This file was deleted.

apps/v1/components/ExportTheme.styles.tsx

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ResizeObserverEntry } from '@juggle/resize-observer'
22
import { ResizeObserver } from '@juggle/resize-observer'
3-
import { Badge, Box, Card, Flex, Inline, Stack, Text } from '@sanity/ui'
3+
import { Badge, Box, Card, Flex, Text } from '@sanity/ui'
44
import CodeSnippet from 'components/CodeSnippet'
55
import { Button } from 'components/Sidebar.styles'
66
import { useIdleCallback } from 'hooks/useIdleCallback'
@@ -17,25 +17,6 @@ import {
1717
import scrollIntoView from 'scroll-into-view-if-needed'
1818
import { styled } from 'styled-components'
1919

20-
interface QuizRowProps {
21-
children: ReactNode
22-
text: ReactNode
23-
}
24-
export const QuizRow = ({ children, text }: QuizRowProps) => {
25-
return (
26-
<TransitionHeight>
27-
<Stack space={2} paddingBottom={4}>
28-
<Text muted size={1}>
29-
{text}
30-
</Text>
31-
<Inline space={1}>{children}</Inline>
32-
</Stack>
33-
</TransitionHeight>
34-
)
35-
}
36-
37-
export const QuizButton = styled(Button).attrs({ mode: 'bleed' })``
38-
3920
type TransitionHeightProps = {
4021
children: ReactNode
4122
}
@@ -118,7 +99,7 @@ interface FilesViewerProps {
11899
filename: string
119100
contents?: string
120101
component?: ReactNode
121-
language?: 'json'
102+
language?: string
122103
}[]
123104
initial?: string
124105
lead: ReactNode

0 commit comments

Comments
 (0)