Selaa lähdekoodia

chore(frontend): Add meta title and description (#4265)

sp.wack 1 vuosi sitten
vanhempi
sitoutus
ef3e106543
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      frontend/src/root.tsx

+ 6 - 0
frontend/src/root.tsx

@@ -1,6 +1,7 @@
 import {
   Links,
   Meta,
+  MetaFunction,
   Outlet,
   Scripts,
   ScrollRestoration,
@@ -49,6 +50,11 @@ export function Layout({ children }: { children: React.ReactNode }) {
   );
 }
 
+export const meta: MetaFunction = () => [
+  { title: "OpenHands" },
+  { name: "description", content: "Let's Start Building!" },
+];
+
 export const clientLoader = async () => {
   let token = localStorage.getItem("token");
   const ghToken = localStorage.getItem("ghToken");