File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
packages/notion-to-jsx/src/components/Renderer/components/Quote Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { MemoizedRichText } from '../MemoizedComponents' ;
3
3
import { container } from './styles.css' ;
4
+ import { RichTextItem } from '../RichText/RichTexts' ;
5
+ import { richText } from '../RichText/styles.css' ;
4
6
5
7
export interface QuoteProps {
6
- richText : any [ ] ;
8
+ richTexts : RichTextItem [ ] ;
7
9
tabIndex ?: number ;
8
10
}
9
11
10
- const Quote : React . FC < QuoteProps > = ( { richText , tabIndex } ) => {
12
+ const Quote : React . FC < QuoteProps > = ( { richTexts , tabIndex } ) => {
11
13
return (
12
14
< blockquote className = { container } tabIndex = { tabIndex } >
13
- < MemoizedRichText richTexts = { richText } />
15
+ < MemoizedRichText richTexts = { richTexts } />
14
16
</ blockquote >
15
17
) ;
16
18
} ;
Original file line number Diff line number Diff line change 1
1
import { style } from '@vanilla-extract/css' ;
2
+ import { vars } from '../../../../styles/theme.css' ;
2
3
3
4
export const container = style ( {
4
5
position : 'relative' ,
5
- margin : '0.5rem 0' ,
6
- padding : '0.25rem 0 0.25rem 1rem' ,
6
+ margin : ` ${ vars . spacing . xs } 0` ,
7
+ padding : ` ${ vars . spacing . xs } 0 ${ vars . spacing . xs } 1rem` ,
7
8
borderLeft : '3px solid #e1e1e1' ,
8
9
color : '#37352f' ,
9
- fontSize : '1rem' ,
10
- lineHeight : '1.5' ,
10
+ fontSize : vars . typography . fontSize . base ,
11
+ lineHeight : vars . typography . lineHeight . base ,
11
12
fontStyle : 'italic' ,
12
13
} ) ;
You can’t perform that action at this time.
0 commit comments