diff --git a/Documentation/src/theme/Root.js b/Documentation/src/theme/Root.js index e529a3d..d96c045 100644 --- a/Documentation/src/theme/Root.js +++ b/Documentation/src/theme/Root.js @@ -1,4 +1,3 @@ -//Root.js import React, { useState } from "react"; import { signIn, auth } from "./pocketbase"; @@ -22,6 +21,79 @@ export default function Root({ children }) { }); return ( - <>{children} + <> + {userAuth != "" ? ( + <>{children} + ) : ( +
+
+ +

Docs

+ + setEmail(e.target.value)} + style={{ + marginBottom: "10px", + padding: "5px", + borderRadius: "5px", + border: "1px solid #ccc", + }} + /> + + setPassword(e.target.value)} + style={{ + marginBottom: "10px", + padding: "5px", + borderRadius: "5px", + border: "1px solid #ccc", + }} + /> + +
+
+ )} + ); } \ No newline at end of file