mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 07:26:02 +01:00
feat(web/menu): menu list focus trapping
This commit is contained in:
@@ -22,17 +22,17 @@ interface DialogProps {
|
||||
cancel?: boolean;
|
||||
}
|
||||
|
||||
debugData<DialogProps>([
|
||||
{
|
||||
action: "sendAlert",
|
||||
data: {
|
||||
header: "Hello there",
|
||||
content: "General kenobi \n Markdown works",
|
||||
centered: true,
|
||||
cancel: true,
|
||||
},
|
||||
},
|
||||
]);
|
||||
// debugData<DialogProps>([
|
||||
// {
|
||||
// action: "sendAlert",
|
||||
// data: {
|
||||
// header: "Hello there",
|
||||
// content: "General kenobi \n Markdown works",
|
||||
// centered: true,
|
||||
// cancel: true,
|
||||
// },
|
||||
// },
|
||||
// ]);
|
||||
|
||||
const AlertDialog: React.FC = () => {
|
||||
const { locale } = useLocales();
|
||||
@@ -77,10 +77,7 @@ const AlertDialog: React.FC = () => {
|
||||
{locale.ui.cancel}
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
colorScheme={dialogData.cancel ? "blue" : undefined}
|
||||
onClick={() => closeAlert("confirm")}
|
||||
>
|
||||
<Button colorScheme={dialogData.cancel ? "blue" : undefined} onClick={() => closeAlert("confirm")}>
|
||||
{locale.ui.confirm}
|
||||
</Button>
|
||||
</AlertDialogFooter>
|
||||
|
||||
Reference in New Issue
Block a user