mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
fix(suite): Fix Text and Paragraph issues + add typecheck
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
"build-data": "tsx ./scripts/buildData.ts",
|
||||
"dev": "[ -f src/analytics.json ] || yarn build-data; vite",
|
||||
"build": "yarn build-data && vite build",
|
||||
"preview": "vite preview"
|
||||
"preview": "vite preview",
|
||||
"type-check": "yarn g:tsc --build tsconfig.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@suite-common/analytics": "workspace:*",
|
||||
|
||||
@@ -7,14 +7,12 @@ export const Markdown = ({ children: childrenMarkdown }: MarkdownProps) => (
|
||||
<MarkdownComponent
|
||||
components={{
|
||||
code: ({ children }) => (
|
||||
<Text isMonospaced typographyStyle="inherit" variant="default">
|
||||
<Text isMonospaced typographyStyle="inherit">
|
||||
{children}
|
||||
</Text>
|
||||
),
|
||||
p: ({ children }) => (
|
||||
<Paragraph typographyStyle="inherit" variant="default">
|
||||
{children}
|
||||
</Paragraph>
|
||||
<Paragraph typographyStyle="inherit">{children}</Paragraph>
|
||||
),
|
||||
ul: ({ children }) => <List>{children}</List>,
|
||||
li: ({ children }) => <List.Item>{children}</List.Item>,
|
||||
|
||||
@@ -20,7 +20,8 @@ export const ResultsInfo = ({
|
||||
<Row gap={8} alignItems="center" flex="1" overflow="hidden">
|
||||
<Paragraph
|
||||
typographyStyle="label"
|
||||
variant="tertiary"
|
||||
intent="neutral"
|
||||
priority="secondary"
|
||||
wordBreak="keep-all"
|
||||
textWrap="nowrap"
|
||||
ellipsisLineCount={1}
|
||||
|
||||
Reference in New Issue
Block a user