Skip to content

Commit a3466f2

Browse files
fixed props
1 parent bdd8b66 commit a3466f2

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/components/CodePreview.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ class CodePreview extends Component {
1919
}}
2020
>
2121
<pre style={{ direction: 'ltr' }}>
22-
{format(componentRender(focusComponent, components))}
22+
{format(componentRender(focusComponent, components), {
23+
singleQuote: true,
24+
trailingComma: 'es5',
25+
bracketSpacing: true,
26+
jsxBracketSameLine: true,
27+
parser: 'typescript',
28+
})}
2329
</pre>
2430
</div>
2531
);

src/public/styles/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
box-sizing: inherit;
55
}
66

7-
* {
7+
/* * {
88
overflow: hidden;
99
overflow-y: hidden;
1010
-ms-overflow-style: none;
1111
scrollbar-width: none;
12-
}
12+
} */
1313

1414
html {
1515
box-sizing: border-box;
16-
overflow: hidden;
16+
/* overflow: hidden; */
1717
}
1818

1919
body {
2020
margin: 0;
2121
padding: 0;
22-
font-family: "Open sans", sans-serif;
22+
font-family: 'Open sans', sans-serif;
2323
font-weight: 400;
2424
overflow: hidden;
2525
}

0 commit comments

Comments
 (0)