feat(lst): tan stack routes added with protected routes

This commit is contained in:
2025-02-19 20:11:40 -06:00
parent 83f6fbf760
commit 5f8943492e
23 changed files with 608 additions and 74 deletions

View File

@@ -1,5 +1,5 @@
import {useState} from "react";
import {useSessionStore} from "../lib/store/sessionStore";
import {useSessionStore} from "../../lib/store/sessionStore";
import {useQueryClient} from "@tanstack/react-query";
const LoginForm = () => {
@@ -36,7 +36,7 @@ const LoginForm = () => {
setSession(data.data.token);
// Refetch the session data to reflect the logged-in state
queryClient.invalidateQueries(["session"]);
queryClient.invalidateQueries();
setUsername("");
setPassword("");