diff --git a/apps/www/src/client/App.tsx b/apps/www/src/client/App.tsx index 146bdba..96a0526 100644 --- a/apps/www/src/client/App.tsx +++ b/apps/www/src/client/App.tsx @@ -1397,6 +1397,7 @@ function StaffPlayerActions({ account, navigate }: { account: PublicAccount; nav // One message for every box sent from this card; it stays put between sends. const [message, setMessage] = useState('') const [confirmingClear, setConfirmingClear] = useState(false) + const [confirmingDorm, setConfirmingDorm] = useState(false) const [itemId, setItemId] = useState('') const [xp, setXp] = useState('') const gift = useAction() @@ -1404,6 +1405,7 @@ function StaffPlayerActions({ account, navigate }: { account: PublicAccount; nav const itemGift = useAction() const usernameChange = useAction() const clearPassword = useAction() + const clearDorm = useAction() const grantPlus = useAction() const base = `/api/staff/players/${account.accountId}` @@ -1626,6 +1628,41 @@ function StaffPlayerActions({ account, navigate }: { account: PublicAccount; nav Clear password )} + {confirmingDorm ? ( + <> + + + + ) : ( + + )}