feat(frontend): member page

This commit is contained in:
sam 2024-09-29 21:10:11 +02:00
parent 3f0a94af3d
commit 0bdd0148d2
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
5 changed files with 181 additions and 101 deletions

View file

@ -5,7 +5,6 @@ import serverRequest from "~/lib/request.server";
import { loader as rootLoader } from "~/root";
import { Alert, Button, Pagination } from "react-bootstrap";
import { Trans, useTranslation } from "react-i18next";
import { renderMarkdown } from "~/lib/markdown";
import { PersonPlusFill } from "react-bootstrap-icons";
import MemberCard from "~/routes/$username/MemberCard";
import { ReactNode } from "react";
@ -77,13 +76,13 @@ export default function UserPage() {
<Trans t={t} i18nKey="user.own-profile-alert">
You are currently viewing your <strong>public</strong> profile.
<br />
<Link to="/edit/profile">Edit your profile</Link>
<Link to="/settings/profile">Edit your profile</Link>
</Trans>
</Alert>
)}
<BaseProfile
name={user.username}
avatarI18nKey={"user.avatar-alt"}
userI18nKeys={true}
profile={user}
customPreferences={user.custom_preferences}
/>