refactor: Removed unused measurement from story
This commit is contained in:
parent
cf2a0871f7
commit
dd56e1c5b1
1 changed files with 23 additions and 23 deletions
|
@ -1,27 +1,27 @@
|
||||||
import React from "react";
|
import React from 'react'
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from '@storybook/react'
|
||||||
import Workbench from ".";
|
import Workbench from '.'
|
||||||
import freesewing from "@freesewing/core";
|
import freesewing from '@freesewing/core'
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
name: "aaron",
|
name: 'aaron',
|
||||||
version: "0.1",
|
version: '0.1',
|
||||||
design: "Joost De Cock",
|
design: 'Joost De Cock',
|
||||||
code: "Joost De Cock",
|
code: 'Joost De Cock',
|
||||||
department: "menswear",
|
department: 'menswear',
|
||||||
type: "pattern",
|
type: 'pattern',
|
||||||
difficulty: 1,
|
difficulty: 1,
|
||||||
tags: ["story", "test"],
|
tags: ['story', 'test'],
|
||||||
optionGroups: {
|
optionGroups: {
|
||||||
fit: ["armholeDrop", "backlineBend"]
|
fit: ['armholeDrop', 'backlineBend']
|
||||||
},
|
},
|
||||||
measurements: ["bicepsCircumference", "centerBackNeckToWaist"],
|
measurements: ['bicepsCircumference', 'hpsToHipsBack'],
|
||||||
parts: ["base"],
|
parts: ['base'],
|
||||||
options: {
|
options: {
|
||||||
armholeDrop: { pct: 10, min: 1, max: 75 },
|
armholeDrop: { pct: 10, min: 1, max: 75 },
|
||||||
backlineBend: { mm: 50, min: 50, max: 100 }
|
backlineBend: { mm: 50, min: 50, max: 100 }
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
const gist = {
|
const gist = {
|
||||||
settings: {
|
settings: {
|
||||||
|
@ -29,22 +29,22 @@ const gist = {
|
||||||
sa: 10,
|
sa: 10,
|
||||||
complete: true,
|
complete: true,
|
||||||
paperless: false,
|
paperless: false,
|
||||||
locale: "en",
|
locale: 'en',
|
||||||
units: "metric",
|
units: 'metric',
|
||||||
margin: 2,
|
margin: 2,
|
||||||
options: {
|
options: {
|
||||||
armholeDrop: 50
|
armholeDrop: 50
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
freesewing,
|
freesewing,
|
||||||
Pattern: () => "aaron",
|
Pattern: () => 'aaron',
|
||||||
config,
|
config,
|
||||||
from: gist
|
from: gist
|
||||||
};
|
}
|
||||||
|
|
||||||
storiesOf("Workbench", module)
|
storiesOf('Workbench', module)
|
||||||
.add("Metric", () => <Workbench {...props} units="metric" />)
|
.add('Metric', () => <Workbench {...props} units="metric" />)
|
||||||
.add("Imperial", () => <Workbench {...props} units="imperial" />);
|
.add('Imperial', () => <Workbench {...props} units="imperial" />)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue