From f0b840b8e885a7ffb45264f81f48a3eedaea37dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Rafael=20Siqueira?= Date: Fri, 21 Feb 2025 11:47:16 -0300 Subject: [PATCH] add title --- dashboard_js/app/entry.client.tsx | 11 +++++++++++ dashboard_js/app/layouts/auth.tsx | 2 +- dashboard_js/app/root.tsx | 2 +- dashboard_js/app/routes/enrollments/index.tsx | 4 ++++ dashboard_js/app/routes/orders/$id.tsx | 7 ++++++- dashboard_js/app/routes/orders/index.tsx | 4 ++++ dashboard_js/app/routes/overview/index.tsx | 4 ++++ dashboard_js/app/routes/users/index.tsx | 5 ++++- 8 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 dashboard_js/app/entry.client.tsx diff --git a/dashboard_js/app/entry.client.tsx b/dashboard_js/app/entry.client.tsx new file mode 100644 index 0000000..97a48c1 --- /dev/null +++ b/dashboard_js/app/entry.client.tsx @@ -0,0 +1,11 @@ +import React from "react"; +import ReactDOM from "react-dom/client"; +import { HydratedRouter } from "react-router/dom"; +import "./app.css"; + +ReactDOM.hydrateRoot( + document, + + + +); diff --git a/dashboard_js/app/layouts/auth.tsx b/dashboard_js/app/layouts/auth.tsx index cfe9077..3aea74d 100644 --- a/dashboard_js/app/layouts/auth.tsx +++ b/dashboard_js/app/layouts/auth.tsx @@ -3,7 +3,7 @@ import { Regular as Logo } from "~/components/logo"; import Pulse from "./_pulse"; import WomanImg from "./woman.png"; -export default function AuthLayout() { +export default function Auth() { const year = new Date().getFullYear(); return ( diff --git a/dashboard_js/app/root.tsx b/dashboard_js/app/root.tsx index fe0ab01..9fbcf0f 100644 --- a/dashboard_js/app/root.tsx +++ b/dashboard_js/app/root.tsx @@ -11,7 +11,6 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { Amplify } from "aws-amplify"; import { AuthProvider } from "~/hooks/use-auth"; import amplifyconfig from "./amplifyconfiguration.json"; -import "./app.css"; Amplify.configure(amplifyconfig); const queryClient = new QueryClient(); @@ -35,6 +34,7 @@ export function Layout({ children }: { children: React.ReactNode }) { + EDUSEG® diff --git a/dashboard_js/app/routes/enrollments/index.tsx b/dashboard_js/app/routes/enrollments/index.tsx index 0247c0c..00b6a14 100644 --- a/dashboard_js/app/routes/enrollments/index.tsx +++ b/dashboard_js/app/routes/enrollments/index.tsx @@ -1,3 +1,7 @@ +export function meta({}) { + return [{ title: "Matrículas" }]; +} + export default function Component() { return <>enrollments index; } diff --git a/dashboard_js/app/routes/orders/$id.tsx b/dashboard_js/app/routes/orders/$id.tsx index c85753c..8c8d66f 100644 --- a/dashboard_js/app/routes/orders/$id.tsx +++ b/dashboard_js/app/routes/orders/$id.tsx @@ -1,3 +1,8 @@ export default function Component() { - return <>orders single; + return ( + <> + Pagamentos +

orders single

+ + ); } diff --git a/dashboard_js/app/routes/orders/index.tsx b/dashboard_js/app/routes/orders/index.tsx index 65ba9ed..0874605 100644 --- a/dashboard_js/app/routes/orders/index.tsx +++ b/dashboard_js/app/routes/orders/index.tsx @@ -1,3 +1,7 @@ +export function meta({}) { + return [{ title: "Pagamentos" }]; +} + export default function Component() { return <>overview single; } diff --git a/dashboard_js/app/routes/overview/index.tsx b/dashboard_js/app/routes/overview/index.tsx index 5691c20..84db3e0 100644 --- a/dashboard_js/app/routes/overview/index.tsx +++ b/dashboard_js/app/routes/overview/index.tsx @@ -1,3 +1,7 @@ +export function meta({}) { + return [{ title: "Visão geral" }]; +} + export default function Component() { return <>overview index; } diff --git a/dashboard_js/app/routes/users/index.tsx b/dashboard_js/app/routes/users/index.tsx index 676f14b..1dc82c3 100644 --- a/dashboard_js/app/routes/users/index.tsx +++ b/dashboard_js/app/routes/users/index.tsx @@ -1,5 +1,9 @@ import { useSuspenseQuery } from "@tanstack/react-query"; +export function meta({}) { + return [{ title: "Usuários" }]; +} + export default function Component() { const info = useSuspenseQuery({ queryKey: ["todos"], @@ -9,6 +13,5 @@ export default function Component() { }, }); - console.log(info); return <>users index; }