mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 21:11:53 +00:00
chore: remove console logs
This commit is contained in:
@@ -33,7 +33,6 @@ export const authConfig = {
|
||||
callbacks: {
|
||||
authorized({ auth, request: { nextUrl } }) {
|
||||
const isLoggedIn = !!auth?.user;
|
||||
// console.log({ auth }, "llegas o no");
|
||||
const isOnDashboard = nextUrl.pathname.startsWith("/");
|
||||
if (isOnDashboard) {
|
||||
if (isLoggedIn) return true;
|
||||
@@ -78,7 +77,6 @@ export const authConfig = {
|
||||
|
||||
const user = await getUser(email, password);
|
||||
if (!user) return null;
|
||||
// console.log({ user });
|
||||
return user;
|
||||
},
|
||||
}),
|
||||
|
||||
@@ -42,8 +42,6 @@ export const AuthForm = ({ type }: { type: string }) => {
|
||||
}
|
||||
}, [state]);
|
||||
|
||||
console.log(state, "el state desde el AuthForm");
|
||||
|
||||
const onSubmit = async (data: z.infer<typeof formSchema>) => {
|
||||
// Do something with the form values
|
||||
// this will be type-safe and validated
|
||||
@@ -56,10 +54,10 @@ export const AuthForm = ({ type }: { type: string }) => {
|
||||
});
|
||||
}
|
||||
// if (type === "sign-up") {
|
||||
// const newUser = await signUpNew(data);
|
||||
// const newUser = await signUp(data);
|
||||
// }
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
console.error(error);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ export const useLocalStorage = (
|
||||
setState(JSON.parse(value));
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
console.error(error);
|
||||
}
|
||||
}, [key]);
|
||||
|
||||
@@ -38,7 +38,7 @@ export const useLocalStorage = (
|
||||
window.localStorage.setItem(key, JSON.stringify(valueToStore));
|
||||
setState(valueToStore);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
console.error(error);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user