mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 14:44:15 +00:00
feat: improve mii list filtering, add gender filter
- added react transitions when redirecting, should improve UI looks and smoothness when filtering/sorting - small refactor - put @types/sjcl in devDependencies
This commit is contained in:
parent
1a14683a10
commit
e1a158d070
11 changed files with 141 additions and 93 deletions
|
|
@ -78,11 +78,9 @@ export default async function ProfilePage({ searchParams, params }: Props) {
|
|||
return (
|
||||
<div>
|
||||
<ProfileInformation userId={user.id} />
|
||||
<div className="bg-amber-50 border-2 border-amber-500 rounded-2xl shadow-lg p-4 flex flex-col gap-4">
|
||||
<Suspense fallback={<Skeleton />}>
|
||||
<MiiList searchParams={await searchParams} userId={user.id} />
|
||||
</Suspense>
|
||||
</div>
|
||||
<Suspense fallback={<Skeleton />}>
|
||||
<MiiList searchParams={await searchParams} userId={user.id} />
|
||||
</Suspense>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,20 +29,16 @@ export default async function ProfileSettingsPage({ searchParams }: Props) {
|
|||
return (
|
||||
<div>
|
||||
<ProfileInformation page="likes" />
|
||||
<div className="bg-amber-50 border-2 border-amber-500 rounded-2xl shadow-lg p-4 flex flex-col gap-4">
|
||||
<div className="bg-amber-50 border-2 border-amber-500 rounded-2xl shadow-lg p-4 flex flex-col gap-4 mb-2">
|
||||
<div>
|
||||
<h2 className="text-2xl font-bold">My Likes</h2>
|
||||
<p className="text-sm text-zinc-500">View every Mii you have liked on TomodachiShare.</p>
|
||||
</div>
|
||||
|
||||
<div className="h-5 flex items-center">
|
||||
<hr className="flex-grow border-zinc-300" />
|
||||
</div>
|
||||
|
||||
<Suspense fallback={<Skeleton />}>
|
||||
<MiiList inLikesPage searchParams={await searchParams} />
|
||||
</Suspense>
|
||||
</div>
|
||||
|
||||
<Suspense fallback={<Skeleton />}>
|
||||
<MiiList inLikesPage searchParams={await searchParams} />
|
||||
</Suspense>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue