refactor(lstv2): cleanup
This commit is contained in:
@@ -23,6 +23,7 @@ const LoginForm = () => {
|
|||||||
const username = localStorage.getItem("username") || "";
|
const username = localStorage.getItem("username") || "";
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const search = useSearch({ from: "/login" });
|
const search = useSearch({ from: "/login" });
|
||||||
|
|
||||||
const {
|
const {
|
||||||
register,
|
register,
|
||||||
handleSubmit,
|
handleSubmit,
|
||||||
|
|||||||
@@ -20,17 +20,10 @@ export const SessionProvider = ({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchModules();
|
fetchModules();
|
||||||
fetchSettings();
|
fetchSettings();
|
||||||
console.log("settings grab ran");
|
|
||||||
fetchUserRoles();
|
fetchUserRoles();
|
||||||
fetchSubModules();
|
fetchSubModules();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
//temp
|
|
||||||
localStorage.removeItem("ally-supports-cache");
|
|
||||||
localStorage.removeItem("auth-storage");
|
|
||||||
localStorage.removeItem("nextauth.message");
|
|
||||||
localStorage.removeItem("prod");
|
|
||||||
localStorage.removeItem("card-storage");
|
|
||||||
return (
|
return (
|
||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export const Route = createRootRoute({
|
|||||||
href={`https://${server[0].value}.alpla.net/lst/d`}
|
href={`https://${server[0].value}.alpla.net/lst/d`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
LST - Docs
|
LST - Docs |
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user