feat(frontend): start settings pages

This commit is contained in:
sam 2024-09-30 21:40:28 +02:00
parent 8f3478d57a
commit 80ac16694c
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
6 changed files with 202 additions and 93 deletions

View file

@ -0,0 +1,18 @@
import { Table } from "react-bootstrap";
import { useTranslation } from "react-i18next";
import { useRouteLoaderData } from "@remix-run/react";
import { loader as settingsLoader } from "../settings/route";
export default function SettingsIndex() {
const { user } = useRouteLoaderData<typeof settingsLoader>("routes/settings")!;
const { t } = useTranslation();
return <>
<Table striped bordered>
<tr>
<th scope="row">{t("settings.general.id")}</th>
<td><code>{user.id}</code></td>
</tr>
</Table>
</>
}