Skip to content

Commit

Permalink
added labels and flesh out step3
Browse files Browse the repository at this point in the history
  • Loading branch information
chgibb committed Oct 3, 2019
1 parent 917bd30 commit f7861eb
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
Expand Up @@ -6,6 +6,7 @@ import {Form, FullWidthStepperForm} from "../../fullWidthStepperForm";

import {step1} from "./step1";
import {step2} from "./step2";
import { step3 } from './step3';

export interface NewCoverageTrackFormProps
{
Expand Down Expand Up @@ -42,6 +43,7 @@ export class NewCoverageTrackForm extends React.Component<NewCoverageTrackFormPr

step1 = step1.bind(this);
step2 = step2.bind(this);
step3 = step3.bind(this);

public onAdvance(step : number) : Promise<boolean>
{
Expand Down Expand Up @@ -69,7 +71,8 @@ export class NewCoverageTrackForm extends React.Component<NewCoverageTrackFormPr
setFormState={this.setState}
steps={[
this.step1(),
this.step2()
this.step2(),
this.step3()
]}
disableNavigation={false}
/>
Expand Down
Expand Up @@ -10,7 +10,7 @@ import {NewCoverageTrackForm} from "./newCoverageTrackForm";
export function step2(this : NewCoverageTrackForm) : FullWidthFormStep
{
return {
label : "",
label : "Select Colour",
body : (
<div>
<GridWrapper>
Expand Down
35 changes: 35 additions & 0 deletions src/req/renderer/containers/forms/newCoverageTrackForm/step3.tsx
@@ -0,0 +1,35 @@
import * as React from "react";

import { NewCoverageTrackForm } from './newCoverageTrackForm';
import { FullWidthFormStep } from '../../fullWidthStepperForm';
import { GridWrapper } from '../../gridWrapper';
import { Grid } from '../../../components/grid';
import { Typography } from '../../../components/typography';
import { ColorLensRounded } from '../../../components/icons/colorLensRounded';
import { style } from 'typestyle';

export function step3(this : NewCoverageTrackForm) : FullWidthFormStep
{
return {
label: "Confirm and Begin",
body : (
<div>
<GridWrapper>
<Grid container spacing={4} justify="center">
<Grid item>

<Typography>{this.state.log10Scale ? "Log10 Scale, " : ""}scale by {this.state.scaleFactor}</Typography>
</Grid>
<Grid item>
<ColorLensRounded
color="primary"
classes={{colorPrimary: style({color: this.state.color})}}
/></Grid>

</Grid>

</GridWrapper>
</div>
)
};
}

0 comments on commit f7861eb

Please sign in to comment.