chore(lab): Restructured components
This commit is contained in:
parent
82c4242088
commit
b662f19223
5 changed files with 12 additions and 195 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue