Skip to content
Snippets Groups Projects
Commit 9135627f authored by Albin Henriksson's avatar Albin Henriksson
Browse files

Add text field for question name

parent 4a1807e2
No related branches found
No related tags found
1 merge request!92Resolve "Refactor/minimize editor code"
This commit is part of merge request !92. Comments created here will be created in the context of that merge request.
......@@ -294,7 +294,12 @@ const SlideSettings: React.FC = () => {
<div className={classes.whiteBackground}>
<FormControl variant="outlined" className={classes.dropDown}>
<InputLabel>Sidtyp</InputLabel>
<Select value={activeSlide?.questions[0]?.type_id || 0} label="Sidtyp" className={classes.panelList}>
<Select
value={activeSlide?.questions[0]?.type_id || 0}
label="Sidtyp"
className={classes.panelList}
fullWidth={true}
>
<MenuItem value={0}>
<Typography variant="button" onClick={() => openSlideTypeDialog(0)}>
Informationssida
......@@ -341,6 +346,7 @@ const SlideSettings: React.FC = () => {
<ListItem>
<TextField
id="standard-number"
fullWidth={true}
variant="outlined"
placeholder="Antal sekunder"
helperText="Lämna blank för att inte använda timerfunktionen"
......@@ -350,7 +356,16 @@ const SlideSettings: React.FC = () => {
value={timer || ''}
/>
</ListItem>
<ListItem>
<TextField
label="Frågetitel"
fullWidth={true}
defaultValue={activeSlide?.questions[0].name}
onChange={updateQuestionName}
variant="outlined"
/>
<Divider />
</ListItem>
<List className={classes.panelList}>
<ListItem divider>
<ListItemText
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment