Skip to content

Commit f3e298b

Browse files
committed
build
1 parent e7ce66d commit f3e298b

File tree

3 files changed

+36
-22
lines changed

3 files changed

+36
-22
lines changed

example/package-lock.json

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/src/App.js

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ import Typography from '@material-ui/core/Typography'
1616
import Toolbar from '@material-ui/core/Toolbar'
1717
import CardActions from '@material-ui/core/CardActions'
1818
import ExpansionPanel from '@material-ui/core/ExpansionPanel'
19-
import {MdKeyboardArrowDown} from 'react-icons/all'
20-
import {Prism as SyntaxHighlighter} from 'react-syntax-highlighter'
19+
import { MdKeyboardArrowDown } from 'react-icons/all'
20+
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'
2121
import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary'
2222
import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails'
2323
/* eslint import/no-webpack-loader-syntax: off */
2424
import code1 from '!!raw-loader!./examples/example-1.js'
2525
import code2 from '!!raw-loader!./examples/example-2.js'
2626
import code3 from '!!raw-loader!./examples/example-3.js'
2727
import code4 from '!!raw-loader!./examples/example-4.js'
28+
import Button from '@material-ui/core/Button'
2829

2930
const App = () => {
3031
return (
@@ -36,6 +37,7 @@ const App = () => {
3637
react-async-component-hoc
3738
</Typography>
3839
<Box ml={3}>Examples</Box>
40+
<Button onClick={github}>GitHub</Button>
3941
</Toolbar>
4042
</AppBar>
4143
<Box mt={10}>
@@ -57,9 +59,11 @@ const App = () => {
5759
Code
5860
</ExpansionPanelSummary>
5961
<ExpansionPanelDetails>
60-
<SyntaxHighlighter language={'jsx'}>
61-
{code1}
62-
</SyntaxHighlighter>
62+
<Box width={1} clone>
63+
<SyntaxHighlighter language={'jsx'}>
64+
{code1}
65+
</SyntaxHighlighter>
66+
</Box>
6367
</ExpansionPanelDetails>
6468
</ExpansionPanel>
6569
</Box>
@@ -83,9 +87,13 @@ const App = () => {
8387
Code
8488
</ExpansionPanelSummary>
8589
<ExpansionPanelDetails>
86-
<SyntaxHighlighter language={'jsx'}>
87-
{code2}
88-
</SyntaxHighlighter>
90+
<Box width={1} clone>
91+
<SyntaxHighlighter
92+
language={'jsx'}
93+
>
94+
{code2}
95+
</SyntaxHighlighter>
96+
</Box>
8997
</ExpansionPanelDetails>
9098
</ExpansionPanel>
9199
</Box>
@@ -112,9 +120,13 @@ const App = () => {
112120
Code
113121
</ExpansionPanelSummary>
114122
<ExpansionPanelDetails>
115-
<SyntaxHighlighter language={'jsx'}>
116-
{code3}
117-
</SyntaxHighlighter>
123+
<Box width={1} clone>
124+
<SyntaxHighlighter
125+
language={'jsx'}
126+
>
127+
{code3}
128+
</SyntaxHighlighter>
129+
</Box>
118130
</ExpansionPanelDetails>
119131
</ExpansionPanel>
120132
</Box>
@@ -144,9 +156,13 @@ const App = () => {
144156
Code
145157
</ExpansionPanelSummary>
146158
<ExpansionPanelDetails>
147-
<SyntaxHighlighter language={'jsx'}>
148-
{code4}
149-
</SyntaxHighlighter>
159+
<Box width={1} clone>
160+
<SyntaxHighlighter
161+
language={'jsx'}
162+
>
163+
{code4}
164+
</SyntaxHighlighter>
165+
</Box>
150166
</ExpansionPanelDetails>
151167
</ExpansionPanel>
152168
</Box>
@@ -157,6 +173,10 @@ const App = () => {
157173
</Box>
158174
</>
159175
)
176+
177+
function github() {
178+
window.open('https://github.com/miketalbot/react-async-component-hoc')
179+
}
160180
}
161181

162182
export default App

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-async-component-hoc",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Async HOC for react rendering",
55
"author": "miketalbot",
66
"license": "MIT",

0 commit comments

Comments
 (0)
close