Skip to content

Commit 6a47dcb

Browse files
committed
fix: Quote using vars
1 parent 1de33ce commit 6a47dcb

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

packages/notion-to-jsx/src/components/Renderer/components/Quote/Quote.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import React from 'react';
22
import { MemoizedRichText } from '../MemoizedComponents';
33
import { container } from './styles.css';
4+
import { RichTextItem } from '../RichText/RichTexts';
5+
import { richText } from '../RichText/styles.css';
46

57
export interface QuoteProps {
6-
richText: any[];
8+
richTexts: RichTextItem[];
79
tabIndex?: number;
810
}
911

10-
const Quote: React.FC<QuoteProps> = ({ richText, tabIndex }) => {
12+
const Quote: React.FC<QuoteProps> = ({ richTexts, tabIndex }) => {
1113
return (
1214
<blockquote className={container} tabIndex={tabIndex}>
13-
<MemoizedRichText richTexts={richText} />
15+
<MemoizedRichText richTexts={richTexts} />
1416
</blockquote>
1517
);
1618
};
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { style } from '@vanilla-extract/css';
2+
import { vars } from '../../../../styles/theme.css';
23

34
export const container = style({
45
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`,
78
borderLeft: '3px solid #e1e1e1',
89
color: '#37352f',
9-
fontSize: '1rem',
10-
lineHeight: '1.5',
10+
fontSize: vars.typography.fontSize.base,
11+
lineHeight: vars.typography.lineHeight.base,
1112
fontStyle: 'italic',
1213
});

0 commit comments

Comments
 (0)