feat(frontend): start welcome page
This commit is contained in:
parent
6acd9b94f4
commit
0f51f01b34
5 changed files with 99 additions and 3 deletions
|
@ -5,7 +5,12 @@ import {
|
|||
redirect,
|
||||
ActionFunctionArgs,
|
||||
} from "@remix-run/node";
|
||||
import { Form as RemixForm, useActionData, useLoaderData } from "@remix-run/react";
|
||||
import {
|
||||
Form as RemixForm,
|
||||
ShouldRevalidateFunction,
|
||||
useActionData,
|
||||
useLoaderData,
|
||||
} from "@remix-run/react";
|
||||
import { Form, Button, ButtonGroup, ListGroup, Row, Col } from "react-bootstrap";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import i18n from "~/i18next.server";
|
||||
|
@ -19,6 +24,10 @@ export const meta: MetaFunction<typeof loader> = ({ data }) => {
|
|||
return [{ title: `${data?.meta.title || "Log in"} - pronouns.cc` }];
|
||||
};
|
||||
|
||||
export const shouldRevalidate: ShouldRevalidateFunction = ({ actionResult }) => {
|
||||
return !actionResult;
|
||||
};
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const t = await i18n.getFixedT(request);
|
||||
const token = getToken(request);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue