wip(lab): Pages for all patterns, work on design options
This commit is contained in:
parent
24e9cd8980
commit
9917ae6a33
51 changed files with 219 additions and 9 deletions
|
@ -0,0 +1,7 @@
|
|||
const DesignOptionPercentage = props => {
|
||||
return (
|
||||
<input type="range" max="100" value="50" className="range range-secondary range-sm" />
|
||||
)
|
||||
}
|
||||
|
||||
export default DesignOptionPercentage
|
|
@ -33,7 +33,6 @@ const MeasurementInput = ({ m, gist, app, updateMeasurements }) => {
|
|||
)
|
||||
|
||||
useEffect(() => {
|
||||
console.log(gist.measurements)
|
||||
if (gist?.measurements?.[m]) setVal(gist.measurements[m]/10)
|
||||
}, [gist])
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react'
|
||||
import MeasurementInput from './input.js'
|
||||
import MeasurementInput from '../inputs/measurement.js'
|
||||
import { withBreasts, withoutBreasts } from 'pkgs/models/src/index.js'
|
||||
import nonHuman from './non-human.js'
|
||||
import WithBreastsIcon from 'shared/components/icons/with-breasts.js'
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { linkClasses, Chevron } from 'shared/components/navigation/primary.js'
|
||||
import PercentOption from 'shared/components/workbench/inputs/design-option-percentage'
|
||||
|
||||
const Option = props => {
|
||||
return (
|
||||
|
@ -31,6 +32,9 @@ const Option = props => {
|
|||
</div>
|
||||
<Chevron w={6} m={3}/>
|
||||
</summary>
|
||||
{props.pattern.config.options[props.option]?.pct && <PercentOption {...props} />}
|
||||
<pre>{JSON.stringify(props.pattern.config.options[props.option],null,2)}</pre>
|
||||
|
||||
fixme
|
||||
</details>
|
||||
</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue