diff --git a/bun.lockb b/bun.lockb index ac490576..7d866aeb 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/app/harbor/shipyard/edit-ship-form.tsx b/src/app/harbor/shipyard/edit-ship-form.tsx index 625f74d3..8bdf77bb 100644 --- a/src/app/harbor/shipyard/edit-ship-form.tsx +++ b/src/app/harbor/shipyard/edit-ship-form.tsx @@ -4,6 +4,16 @@ import type { Ship } from '@/app/utils/data' import { useToast } from '@/hooks/use-toast' import Icon from '@hackclub/icons' import { useState } from 'react' +import { + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, + DialogTrigger, + DialogClose, + DialogFooter, +} from '@/components/ui/dialog' const editMessages = [ 'Orpheus hopes you know that she put a lot of effort into recording your changes~', @@ -190,14 +200,34 @@ export default function EditShipForm({ Save edits - + + + + + + + Are you absolutely sure? + + This action cannot be undone. + + + + + + + ) diff --git a/src/app/harbor/shipyard/new-update-form.tsx b/src/app/harbor/shipyard/new-update-form.tsx index 4247a9f9..f5bf4e60 100644 --- a/src/app/harbor/shipyard/new-update-form.tsx +++ b/src/app/harbor/shipyard/new-update-form.tsx @@ -2,6 +2,14 @@ import { createShipUpdate } from './ship-utils' import type { Ship } from '@/app/utils/data' import { Button } from '@/components/ui/button' +import { + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, + DialogTrigger, +} from '@/components/ui/dialog' import JSConfetti from 'js-confetti' import { useCallback, useEffect, useRef, useState } from 'react' import { getWakaSessions } from '@/app/utils/waka'