From 089c5724a145732c4540e92694eb2f4af8b86d10 Mon Sep 17 00:00:00 2001 From: kayra1 Date: Fri, 26 Jul 2024 15:20:26 +0300 Subject: [PATCH] onboarding page cleanup --- ui/src/app/onboarding/page.tsx | 88 +++++++++++++++++++--------------- 1 file changed, 50 insertions(+), 38 deletions(-) diff --git a/ui/src/app/onboarding/page.tsx b/ui/src/app/onboarding/page.tsx index 1f4e287..522726d 100644 --- a/ui/src/app/onboarding/page.tsx +++ b/ui/src/app/onboarding/page.tsx @@ -3,7 +3,7 @@ import { useState, ChangeEvent } from "react" import { postFirstUser } from "../queries" import { useMutation } from "react-query" -import { useRouter } from "next/router" +import { useRouter } from "next/navigation" export default function Onboarding() { @@ -26,43 +26,55 @@ export default function Onboarding() { const handlePassword1Change = (event: ChangeEvent) => { setPassword1(event.target.value) } const handlePassword2Change = (event: ChangeEvent) => { setPassword2(event.target.value) } return ( -
-
-

Welcome to GoCert

-

Please create an admin user to get started

-
-
-
-
- - - - -

- Password must have 8 or more characters, must include at least one capital letter, one lowercase letter, and either a number or a symbol. -

- - - {!passwordsMatch &&

Passwords do not match

} - {errorText && -
-
-
Error
-

{errorText.split("error: ")}

+
+
+
+

Welcome to GoCert

+
+
+
Please create an admin user to get started
+ +
+ + + + +

+ Password must have 8 or more characters, must include at least one capital letter, one lowercase letter, and either a number or a symbol. +

+ + + {!passwordsMatch &&

Passwords do not match

} + {errorText && +
+
+
Error
+

{errorText.split("error: ")}

+
-
- } - {!passwordsMatch ? ( - <> - - - ) : ( - - ) - } -
- -
-
+ } + {!passwordsMatch ? ( + <> + + + ) : ( + + ) + } +
+ +
+
+
) } \ No newline at end of file