mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 14:44:15 +00:00
chore: update packages, format all files, fix downshift errors
This commit is contained in:
parent
df7901b525
commit
a6c2d924f1
36 changed files with 864 additions and 1154 deletions
|
|
@ -39,11 +39,7 @@ export default function DeleteAccount() {
|
|||
|
||||
return (
|
||||
<>
|
||||
<button
|
||||
name="deletion"
|
||||
onClick={() => setIsOpen(true)}
|
||||
className="pill button w-fit h-min ml-auto bg-red-400! border-red-500! hover:bg-red-500!"
|
||||
>
|
||||
<button name="deletion" onClick={() => setIsOpen(true)} className="pill button w-fit h-min ml-auto bg-red-400! border-red-500! hover:bg-red-500!">
|
||||
Delete Account
|
||||
</button>
|
||||
|
||||
|
|
@ -69,9 +65,7 @@ export default function DeleteAccount() {
|
|||
</button>
|
||||
</div>
|
||||
|
||||
<p className="text-sm text-zinc-500">
|
||||
Are you sure? This is permanent and will remove all uploaded Miis. This action cannot be undone.
|
||||
</p>
|
||||
<p className="text-sm text-zinc-500">Are you sure? This is permanent and will remove all uploaded Miis. This action cannot be undone.</p>
|
||||
|
||||
{error && <span className="text-red-400 font-bold mt-2">Error: {error}</span>}
|
||||
|
||||
|
|
@ -83,7 +77,7 @@ export default function DeleteAccount() {
|
|||
</div>
|
||||
</div>
|
||||
</div>,
|
||||
document.body
|
||||
document.body,
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -151,13 +151,7 @@ export default function ProfileSettings({ currentDescription }: Props) {
|
|||
</div>
|
||||
|
||||
<div className="flex justify-end gap-1 h-min col-span-2">
|
||||
<input
|
||||
type="text"
|
||||
className="pill input flex-1"
|
||||
placeholder="Type here..."
|
||||
value={displayName}
|
||||
onChange={(e) => setDisplayName(e.target.value)}
|
||||
/>
|
||||
<input type="text" className="pill input flex-1" placeholder="Type here..." value={displayName} onChange={(e) => setDisplayName(e.target.value)} />
|
||||
<SubmitDialogButton
|
||||
title="Confirm Display Name Change"
|
||||
description="Are you sure? This will only be visible on your profile. You can change it again later."
|
||||
|
|
|
|||
|
|
@ -86,8 +86,8 @@ export default function ProfilePictureSettings() {
|
|||
onSubmit={handleSubmit}
|
||||
>
|
||||
<p className="text-sm text-zinc-500 mt-2">
|
||||
After submitting, you can change it again on{" "}
|
||||
{changeDate.toDate().toLocaleDateString("en-US", { month: "long", day: "numeric", year: "numeric" })}.
|
||||
After submitting, you can change it again on {changeDate.toDate().toLocaleDateString("en-US", { month: "long", day: "numeric", year: "numeric" })}
|
||||
.
|
||||
</p>
|
||||
|
||||
<div className="bg-orange-100 rounded-xl border-2 border-amber-500 mt-4 px-2 py-1 flex items-center">
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ export default function SubmitDialogButton({ title, description, onSubmit, error
|
|||
</div>
|
||||
</div>
|
||||
</div>,
|
||||
document.body
|
||||
document.body,
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue