feat(frontend): start settings pages
This commit is contained in:
parent
8f3478d57a
commit
80ac16694c
6 changed files with 202 additions and 93 deletions
18
Foxnouns.Frontend/app/routes/settings._index/route.tsx
Normal file
18
Foxnouns.Frontend/app/routes/settings._index/route.tsx
Normal 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>
|
||||
</>
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue