mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-28 21:57:23 +02:00
Load locale ondemand + spanish locale (#249)
This commit is contained in:
parent
0f35bd0518
commit
c2aea134ef
30 changed files with 700 additions and 455 deletions
|
@ -1,4 +1,3 @@
|
|||
import dayjs from "dayjs";
|
||||
import Head from "next/head";
|
||||
import Link from "next/link";
|
||||
import { useTranslation } from "next-i18next";
|
||||
|
@ -8,6 +7,7 @@ import Calendar from "@/components/icons/calendar.svg";
|
|||
import Pencil from "@/components/icons/pencil.svg";
|
||||
import User from "@/components/icons/user.svg";
|
||||
|
||||
import { useDayjs } from "../utils/dayjs";
|
||||
import { trpc } from "../utils/trpc";
|
||||
import { EmptyState } from "./empty-state";
|
||||
import LoginForm from "./login-form";
|
||||
|
@ -16,6 +16,7 @@ import { useSession } from "./session";
|
|||
|
||||
export const Profile: React.VoidFunctionComponent = () => {
|
||||
const { user } = useSession();
|
||||
const { dayjs } = useDayjs();
|
||||
|
||||
const { t } = useTranslation("app");
|
||||
const { data: userPolls } = trpc.useQuery(["user.getPolls"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue