File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
src/frontend/apps/impress/src/features/docs Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export const DocToolBox = ({ doc }: DocToolBoxProps) => {
193
193
} }
194
194
size = { isSmallMobile ? 'small' : 'medium' }
195
195
style = { {
196
- color : colors [ 'primary-800' ] ,
196
+ color : colorsTokens [ 'primary-800' ] ,
197
197
} }
198
198
>
199
199
{ t ( 'Share' ) }
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ export const DocSubPageItem = (props: Props) => {
39
39
const { spacingsTokens } = useCunninghamTheme ( ) ;
40
40
const [ isHover , setIsHover ] = useState ( false ) ;
41
41
42
- const spacing = spacingsTokens ( ) ;
43
42
const router = useRouter ( ) ;
44
43
const { togglePanel } = useLeftPanelStore ( ) ;
45
44
@@ -115,7 +114,7 @@ export const DocSubPageItem = (props: Props) => {
115
114
data-testid = { `doc-sub-page-item-${ props . node . data . value . id } ` }
116
115
$width = "100%"
117
116
$direction = "row"
118
- $gap = { spacing [ 'xs' ] }
117
+ $gap = { spacingsTokens [ 'xs' ] }
119
118
role = "button"
120
119
tabIndex = { 0 }
121
120
$align = "center"
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ type DocTreeProps = {
25
25
} ;
26
26
export const DocTree = ( { initialTargetId } : DocTreeProps ) => {
27
27
const { spacingsTokens } = useCunninghamTheme ( ) ;
28
- const spacing = spacingsTokens ( ) ;
29
28
const treeContext = useTreeContext < Doc > ( ) ;
30
29
const { currentDoc } = useDocStore ( ) ;
31
30
const router = useRouter ( ) ;
@@ -138,7 +137,7 @@ export const DocTree = ({ initialTargetId }: DocTreeProps) => {
138
137
< Box $padding = { { horizontal : 'sm' , top : 'sm' , bottom : '-1px' } } >
139
138
< Box
140
139
$css = { css `
141
- padding : ${ spacing [ '2xs' ] } ;
140
+ padding : ${ spacingsTokens [ '2xs' ] } ;
142
141
border-radius : 4px ;
143
142
width : 100% ;
144
143
background-color : ${ rootIsSelected
You can’t perform that action at this time.
0 commit comments