Use file loader to load demo cursor

This commit is contained in:
Thomas Nordquist
2019-04-10 20:34:27 +02:00
parent b12961cbc9
commit a929729e6a
5 changed files with 21 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
import * as React from 'react'
import { Theme, withStyles } from '@material-ui/core'
const cursor = require('./cursor.png')
interface State {
enabled: boolean
@@ -64,7 +65,7 @@ class Demo extends React.Component<{classes: any}, State> {
}
return (
<img src="../cursor.png" style={cursorStyle} className={this.props.classes.cursor} />
<img src={cursor} style={cursorStyle} className={this.props.classes.cursor} />
)
}
}