1
0
Fork 0

refactor: Removed unused measurement from story

This commit is contained in:
Joost De Cock 2020-02-01 16:58:00 +01:00
parent cf2a0871f7
commit dd56e1c5b1

View file

@ -1,27 +1,27 @@
import React from "react";
import { storiesOf } from "@storybook/react";
import Workbench from ".";
import freesewing from "@freesewing/core";
import React from 'react'
import { storiesOf } from '@storybook/react'
import Workbench from '.'
import freesewing from '@freesewing/core'
const config = {
name: "aaron",
version: "0.1",
design: "Joost De Cock",
code: "Joost De Cock",
department: "menswear",
type: "pattern",
name: 'aaron',
version: '0.1',
design: 'Joost De Cock',
code: 'Joost De Cock',
department: 'menswear',
type: 'pattern',
difficulty: 1,
tags: ["story", "test"],
tags: ['story', 'test'],
optionGroups: {
fit: ["armholeDrop", "backlineBend"]
fit: ['armholeDrop', 'backlineBend']
},
measurements: ["bicepsCircumference", "centerBackNeckToWaist"],
parts: ["base"],
measurements: ['bicepsCircumference', 'hpsToHipsBack'],
parts: ['base'],
options: {
armholeDrop: { pct: 10, min: 1, max: 75 },
backlineBend: { mm: 50, min: 50, max: 100 }
}
};
}
const gist = {
settings: {
@ -29,22 +29,22 @@ const gist = {
sa: 10,
complete: true,
paperless: false,
locale: "en",
units: "metric",
locale: 'en',
units: 'metric',
margin: 2,
options: {
armholeDrop: 50
}
}
};
}
const props = {
freesewing,
Pattern: () => "aaron",
Pattern: () => 'aaron',
config,
from: gist
};
}
storiesOf("Workbench", module)
.add("Metric", () => <Workbench {...props} units="metric" />)
.add("Imperial", () => <Workbench {...props} units="imperial" />);
storiesOf('Workbench', module)
.add('Metric', () => <Workbench {...props} units="metric" />)
.add('Imperial', () => <Workbench {...props} units="imperial" />)