Skip to content

Commit

Permalink
Reinforce security when deleting a form
Browse files Browse the repository at this point in the history
  • Loading branch information
ln-dev7 committed Nov 28, 2023
1 parent 6d6f573 commit 2188464
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/form/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,13 +466,20 @@ export default function SettingsForms({ dataForm }: { dataForm: any }) {
onChange={(e) => {
setConfirmFormName(e.target.value)
}}
value={confirmFormName}
className=""
/>
</div>
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogCancel
onClick={() => {
setConfirmFormName("")
}}
>
Cancel
</AlertDialogCancel>
<button
className={cn(
"inline-flex h-10 items-center justify-center rounded-md bg-red-500 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-slate-900 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-red-600 dark:hover:bg-slate-200 dark:hover:text-slate-900 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900"
Expand Down

1 comment on commit 2188464

@vercel
Copy link

@vercel vercel bot commented on 2188464 Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sharuco – ./

shruco.vercel.app
sharuco-ln-dev7.vercel.app
sharuco-git-master-ln-dev7.vercel.app
sharuco.lndev.me

Please sign in to comment.