Skip to content

Commit

Permalink
progress on #130
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmuserik committed Oct 16, 2018
1 parent 8a961c9 commit dc4c11f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/quizElements.js
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import DeleteIcon from '@material-ui/icons/Delete';
import AddIcon from '@material-ui/icons/Add';
import Button from '@material-ui/core/Button';
import Input from '@material-ui/core/Input';
import Grid from '@material-ui/core/Grid';
import TextField from '@material-ui/core/TextField';
import Typography from '@material-ui/core/Typography';
Expand Down Expand Up @@ -82,6 +83,17 @@ const quizElements = {
updateQuizElement(ui => ui.set('url', e.target.value))
}
/>
<input
accept="image/*"
className={classes.displayNone}
id="uploadImageFile"
type="file"
/>
<label htmlFor="uploadImageFile">
<Button component="span">
<AddIcon /> Upload billede
</Button>
</label>
</div>
);
}
Expand Down
3 changes: 3 additions & 0 deletions src/components/style.js
@@ -1,4 +1,7 @@
const style = theme => ({
displayNone: {
display: 'none'
},
container: {
maxWidth: Math.min(window.innerWidth * 0.95, 960),
minHeight: window.innerHeight - 64,
Expand Down

0 comments on commit dc4c11f

Please sign in to comment.