fix(react-components): Paperless grid in Pattern
This commit is contained in:
parent
5716b69e58
commit
17725ff941
4 changed files with 14 additions and 15 deletions
|
@ -2,10 +2,11 @@ import React from 'react'
|
|||
import { getProps } from './utils.mjs'
|
||||
|
||||
export const Stack = ({ stackName, stack, settings, components, t }) => {
|
||||
const { Group, Part } = components
|
||||
const { Group, Part, Grid } = components
|
||||
|
||||
return (
|
||||
<Group {...getProps(stack)}>
|
||||
{settings[0].paperless ? <Grid {...{ stack, stackName }} /> : null}
|
||||
{[...stack.parts].map((part, key) => (
|
||||
<Part {...{ settings, components, t, part, stackName, key }} />
|
||||
))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue