Skip to content

Commit

Permalink
flesh out step2
Browse files Browse the repository at this point in the history
  • Loading branch information
chgibb committed Sep 25, 2019
1 parent 39a1ffc commit 3646dee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Expand Up @@ -18,6 +18,7 @@ export interface NewCoverageTrackFormState
{
log10Scale : boolean;
scaleFactor : number;
color : string;
errors : Array<string>;
currentStep : number;
}
Expand All @@ -32,6 +33,7 @@ export class NewCoverageTrackForm extends React.Component<NewCoverageTrackFormPr
log10Scale : false,
scaleFactor : 1,
errors : [],
color : "#000000",
currentStep : 0
};

Expand Down
16 changes: 16 additions & 0 deletions src/req/renderer/containers/forms/newCoverageTrackForm/step2.tsx
Expand Up @@ -2,13 +2,29 @@ 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>
)
};
Expand Down

0 comments on commit 3646dee

Please sign in to comment.