fix(lab): Fixed lab after moving to esm and named exports
This commit is contained in:
parent
dc1f1d7029
commit
d6d8c6f122
31 changed files with 244 additions and 248 deletions
|
@ -1,37 +0,0 @@
|
|||
import { Chevron } from 'shared/components/navigation/primary.js'
|
||||
import { Ul, Li, Details, Summary, SumButton, SumDiv, Deg } from 'shared/components/workbench/menu'
|
||||
|
||||
const ConsoleLog = (props) => (
|
||||
<Li>
|
||||
<Details>
|
||||
<Summary>
|
||||
<SumDiv>
|
||||
<Deg />
|
||||
<span>console.log()</span>
|
||||
</SumDiv>
|
||||
<Chevron />
|
||||
</Summary>
|
||||
<Ul>
|
||||
{['designConfig', 'patternConfig', 'gist', 'draft', 'renderProps'].map((it) => (
|
||||
<Li key={it}>
|
||||
<SumButton
|
||||
onClick={() => {
|
||||
if (it === 'designConfig') return console.log(props.design.designConfig)
|
||||
if (it === 'patternConfig') return console.log(props.design.patternConfig)
|
||||
if (it === 'renderProps') return console.log(props.draft.getRenderProps())
|
||||
return console.log(props[it])
|
||||
}}
|
||||
>
|
||||
<SumDiv>
|
||||
<Deg />
|
||||
<span>{it}</span>
|
||||
</SumDiv>
|
||||
</SumButton>
|
||||
</Li>
|
||||
))}
|
||||
</Ul>
|
||||
</Details>
|
||||
</Li>
|
||||
)
|
||||
|
||||
export default ConsoleLog
|
Loading…
Add table
Add a link
Reference in a new issue