Skip to content

Commit d671114

Browse files
patdryburghdholms
authored andcommitted
display preferences object in preview panel (#31)
* display preferences object in preview panel * add comment header to explain what the pref object is
1 parent c735a46 commit d671114

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/Preview.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ class Preview extends React.Component {
7777
>
7878
{codeSample}
7979
</SyntaxHighlighter>
80+
<SyntaxHighlighter
81+
language="json"
82+
style={codeStyles[preferences.codeStyle]}
83+
>
84+
{
85+
"# Current Settings \n" +
86+
JSON.stringify(preferences, null, 2)
87+
}
88+
</SyntaxHighlighter>
8089
</Container>
8190
</MuiThemeProvider>
8291
</Paper>

0 commit comments

Comments
 (0)