Skip to content

Commit b18321f

Browse files
committed
Fixed issues with preview parser and MAterial-UI warning
1 parent d043841 commit b18321f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/CodePreview.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ class CodePreview extends Component<Props> {
2626
}}
2727
>
2828
<SyntaxHighlighter style={hybrid}>
29-
{format(componentRender(focusComponent, components))}
29+
{format(componentRender(focusComponent, components), {
30+
singleQuote: true,
31+
trailingComma: 'es5',
32+
bracketSpacing: true,
33+
jsxBracketSameLine: true,
34+
parser: 'typescript'
35+
})}
3036
</SyntaxHighlighter>
3137
</div>
3238
);

src/components/SimpleModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const SimpleModal = (props: any) => {
7070
>
7171
<CloseIcon />
7272
</IconButton>
73-
<Typography variant="title" id="modal-title">
73+
<Typography variant="h6" id="modal-title">
7474
{message}
7575
</Typography>
7676
<div>{children}</div>

0 commit comments

Comments
 (0)