wip: fix stacked dynamic sections menu
This commit is contained in:
1 parent
78230b1fe9
commit
0386449ec1
3 files changed
+153
-14
No files matched your search
@@ -2,6 +2,7 @@ import { Box, Card } from "@mantine/core";
|
||||
|
||||
import type { DynamicSection } from "~/app/[locale]/boards/_types";
|
||||
import { useRequiredBoard } from "~/app/[locale]/boards/(content)/_context";
|
||||
import { DynamicSectionProvider } from "./dynamic/dynamic-context";
|
||||
import { BoardDynamicSectionMenu } from "./dynamic/dynamic-menu";
|
||||
import { GridStack } from "./gridstack/gridstack";
|
||||
import classes from "./item.module.css";
|
||||
@@ -12,6 +13,7 @@ interface Props {
|
||||
|
||||
export const BoardDynamicSection = ({ section }: Props) => {
|
||||
const board = useRequiredBoard();
|
||||
|
||||
return (
|
||||
<Box className="grid-stack-item-content">
|
||||
<Card
|
||||
@@ -27,7 +29,9 @@ export const BoardDynamicSection = ({ section }: Props) => {
|
||||
}}
|
||||
p={0}
|
||||
>
|
||||
<GridStack section={section} className="min-row" />
|
||||
<DynamicSectionProvider section={section}>
|
||||
<GridStack section={section} className="min-row" />
|
||||
</DynamicSectionProvider>
|
||||
</Card>
|
||||
<BoardDynamicSectionMenu section={section} />
|
||||
</Box>
|
||||
|
||||
Reference in new issue
Block a user