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; }