fix slide panel
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
|||||||
ActionIcon,
|
ActionIcon,
|
||||||
ScrollArea,
|
ScrollArea,
|
||||||
Divider,
|
Divider,
|
||||||
|
Stack,
|
||||||
} from "@mantine/core";
|
} from "@mantine/core";
|
||||||
import { ArrowLeftIcon, CheckIcon } from "@phosphor-icons/react";
|
import { ArrowLeftIcon, CheckIcon } from "@phosphor-icons/react";
|
||||||
import { useState, ReactNode } from "react";
|
import { useState, ReactNode } from "react";
|
||||||
@@ -175,8 +176,10 @@ const SlidePanel = ({
|
|||||||
{...(panelConfig.componentProps || {})}
|
{...(panelConfig.componentProps || {})}
|
||||||
/>
|
/>
|
||||||
</ScrollArea.Autosize>
|
</ScrollArea.Autosize>
|
||||||
|
<Stack mt="auto" w="100%">
|
||||||
<Button mt="md" onClick={handleConfirm}>Confirm</Button>
|
<Button mt="md" onClick={handleConfirm}>Confirm</Button>
|
||||||
<Button variant="subtle" onClick={closePanel} mt="sm" color="red">Cancel</Button>
|
<Button variant="subtle" onClick={closePanel} mt="sm" color="red">Cancel</Button>
|
||||||
|
</Stack>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user