mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 14:44:15 +00:00
feat: account deletion
This commit is contained in:
parent
96e12d0716
commit
d2522c8d93
3 changed files with 117 additions and 5 deletions
|
|
@ -1,10 +1,13 @@
|
|||
import { redirect } from "next/navigation";
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
|
||||
import { Icon } from "@iconify/react";
|
||||
|
||||
import { auth } from "@/lib/auth";
|
||||
import { prisma } from "@/lib/prisma";
|
||||
import { Icon } from "@iconify/react";
|
||||
import Link from "next/link";
|
||||
|
||||
import DeleteAccount from "@/app/components/profile-settings/delete-account";
|
||||
|
||||
export default async function ProfileSettingsPage() {
|
||||
const session = await auth();
|
||||
|
|
@ -106,9 +109,7 @@ export default async function ProfileSettingsPage() {
|
|||
<p className="text-sm text-zinc-500">This will permanently remove your account and all uploaded Miis. This action cannot be undone</p>
|
||||
</div>
|
||||
|
||||
<button name="deletion" className="pill button w-fit h-min ml-auto !bg-red-400 !border-red-500 hover:!bg-red-500">
|
||||
Delete Account
|
||||
</button>
|
||||
<DeleteAccount />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue