Skip to content

Commit

Permalink
rename endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kayra1 committed Aug 2, 2024
1 parent 9cb5271 commit b027abd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useMutation } from "react-query"
import { useRouter } from "next/navigation"
import { passwordIsValid } from "../utils"
import { useAuth } from "../auth/authContext"
import { Logo } from "../nav"


export default function Onboarding() {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function LoginPage() {
queryFn: () => getStatus()
})
if (!auth.firstUserCreated && (statusQuery.data && !statusQuery.data.initialized)) {
router.push("/onboarding")
router.push("/initialize")
}
const mutation = useMutation(login, {
onSuccess: (e) => {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function Navigation({
children: React.ReactNode;
}>) {
const activePath = usePathname()
const noNavRoutes = ['/login', '/onboarding'];
const noNavRoutes = ['/login', '/initialize'];

const shouldRenderNavigation = !noNavRoutes.includes(activePath);
const [sidebarVisible, setSidebarVisible] = useState<boolean>(true)
Expand Down

0 comments on commit b027abd

Please sign in to comment.