1
0
Fork 0

chore(lab): Restructured components

This commit is contained in:
Joost De Cock 2022-01-25 11:22:48 +01:00
parent 82c4242088
commit b662f19223
5 changed files with 12 additions and 195 deletions

View file

@ -2,7 +2,8 @@ import { useState, useEffect } from 'react'
import useLocalStorage from 'shared/hooks/useLocalStorage.js'
import Layout from 'shared/components/layouts/default'
import Menu from 'shared/components/workbench/menu.js'
import Measurements, { Input } from 'shared/components/workbench/measurements.js'
import Measurements, { Input } from 'shared/components/workbench/measurements/index.js'
import LabDraft from 'shared/components/workbench/draft/index.js'
import set from 'lodash.set'
// Generates a default pattern gist to start from
@ -78,6 +79,14 @@ const WorkbenchWrapper = ({ app, pattern }) => {
updateGist={updateGist}
/>
)}
{mode === 'draft' && (
<LabDraft
app={app}
pattern={pattern}
gist={gist}
updateGist={updateGist}
/>
)}
<pre>{JSON.stringify(mode, null, 2)}</pre>
<pre>{JSON.stringify(gist, null, 2)}</pre>
</Layout>