aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/ui
diff options
context:
space:
mode:
authorMd Saban <45597394+mdsaban@users.noreply.github.com>2024-07-02 03:51:23 +0530
committerGitHub <noreply@github.com>2024-07-01 23:21:23 +0100
commitd193d9bf89e8a88bf70b673ea5e438d73cf40c0c (patch)
tree56d260c0624b74bda054f8865c3bd2e166f49e8d /apps/web/components/ui
parentbf92fa3386be331871963f99ec5c813186a388b3 (diff)
downloadkarakeep-d193d9bf89e8a88bf70b673ea5e438d73cf40c0c.tar.zst
feat: Add bulk edit option for bookmarks. Fixes #84 (#259)
* feat: add bulk edit option for bookmarks * fix: resolve comments * fix: resolve comments * fix: resolve comments * fix: resolve comments * rename bulk action store, simplify the bulk action toolbar --------- Co-authored-by: MohamedBassem <me@mbassem.com>
Diffstat (limited to 'apps/web/components/ui')
-rw-r--r--apps/web/components/ui/action-button.tsx2
-rw-r--r--apps/web/components/ui/action-confirming-dialog.tsx4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/web/components/ui/action-button.tsx b/apps/web/components/ui/action-button.tsx
index b3984d97..b7cd9b3d 100644
--- a/apps/web/components/ui/action-button.tsx
+++ b/apps/web/components/ui/action-button.tsx
@@ -46,7 +46,7 @@ const ActionButtonWithTooltip = React.forwardRef<
>(({ tooltip, delayDuration, ...props }, ref) => {
return (
<Tooltip delayDuration={delayDuration}>
- <TooltipTrigger>
+ <TooltipTrigger asChild>
<ActionButton ref={ref} {...props} />
</TooltipTrigger>
<TooltipPortal>
diff --git a/apps/web/components/ui/action-confirming-dialog.tsx b/apps/web/components/ui/action-confirming-dialog.tsx
index 37895ee7..cfd38fc3 100644
--- a/apps/web/components/ui/action-confirming-dialog.tsx
+++ b/apps/web/components/ui/action-confirming-dialog.tsx
@@ -24,7 +24,7 @@ export default function ActionConfirmingDialog({
title: React.ReactNode;
description: React.ReactNode;
actionButton: (setDialogOpen: (open: boolean) => void) => React.ReactNode;
- children: React.ReactNode;
+ children?: React.ReactNode;
}) {
const [customIsOpen, setCustomIsOpen] = useState(false);
const [isDialogOpen, setDialogOpen] = [
@@ -33,7 +33,7 @@ export default function ActionConfirmingDialog({
];
return (
<Dialog open={isDialogOpen} onOpenChange={setDialogOpen}>
- <DialogTrigger asChild>{children}</DialogTrigger>
+ {children && <DialogTrigger asChild>{children}</DialogTrigger>}
<DialogContent>
<DialogHeader>
<DialogTitle>{title}</DialogTitle>