-
Notifications
You must be signed in to change notification settings - Fork 2
/
step2.tsx
31 lines (29 loc) · 1.13 KB
/
step2.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import * as React from "react";
import { NewCoverageTrackForm } from './newCoverageTrackForm';
import { FullWidthFormStep } from '../../fullWidthStepperForm';
import { GridWrapper } from '../../gridWrapper';
import { Grid } from '../../../components/grid';
import { ColourPicker } from '../../../components/colourPicker';
export function step2(this : NewCoverageTrackForm) : FullWidthFormStep
{
return {
label : "",
body : (
<div>
<GridWrapper>
<Grid container spacing={4} justify="center">
<Grid item>
<div style={{marginTop:"3vh"}}>
<ColourPicker label="Track colour:" onChange={(color) => {
this.setState({
color : `rgb(${color.rgb.r},${color.rgb.g},${color.rgb.b})`
});
}} colour={this.state.color}/>
</div>
</Grid>
</Grid>
</GridWrapper>
</div>
)
};
}