Skip to content

Commit

Permalink
add the spin label
Browse files Browse the repository at this point in the history
  • Loading branch information
dou-du committed Sep 2, 2021
1 parent 977c27a commit 4cdac5f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/visualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,17 @@ export class Visualizer extends React.Component<IProps, IState> {
onSelect={this.handlePaletteSelection}
/>
<UploadButtons onChange={this.loadStructure} />
<Switch
checked={this.state.spin}
onChange={this.toggleSpin}
name="spin"
color="secondary"
<FormControlLabel
value="spin"
control={
<Switch
checked={this.state.spin}
onChange={this.toggleSpin}
name="spin"
color="secondary"
/>
}
label="Spin"
/>
</Grid>
<Grid
Expand Down

0 comments on commit 4cdac5f

Please sign in to comment.