feat: Drop to import onto collection scene (#2005)

* Refactor to functional component

* feat: Basic drag and drop into collection
This commit is contained in:
Tom Moor
2021-04-05 19:05:27 -07:00
committed by GitHub
parent b4213e498c
commit 1101ea428b
10 changed files with 529 additions and 433 deletions

View File

@@ -12,6 +12,7 @@ type Props = {|
children: React.Node,
breadcrumb?: React.Node,
actions?: React.Node,
centered?: boolean,
|};
function Scene({
@@ -21,6 +22,7 @@ function Scene({
actions,
breadcrumb,
children,
centered,
}: Props) {
return (
<FillWidth>
@@ -38,7 +40,11 @@ function Scene({
actions={actions}
breadcrumb={breadcrumb}
/>
<CenteredContent withStickyHeader>{children}</CenteredContent>
{centered !== false ? (
<CenteredContent withStickyHeader>{children}</CenteredContent>
) : (
children
)}
</FillWidth>
);
}