Skip to content

Commit

Permalink
update: add recaptcha and carousel fixes (#20)
Browse files Browse the repository at this point in the history
* fix: login and carousel

* fix: signup

---------

Co-authored-by: mharrish7 <[email protected]>
  • Loading branch information
vigneshd332 and mharrish7 authored Dec 12, 2023
1 parent a3e50cc commit f32b49c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const metadata: Metadata = {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body className={'bg-[#070B12]'}>
<div className="w-full min-h-screen bg-[#070B12]">{children}</div>
<Footer />
<Toast />
Expand Down
2 changes: 1 addition & 1 deletion src/components/AuthLayout/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const SignUp: React.FC<SignupFormProps> = ({ setForm }) => {
.authUserRegister({
// @ts-ignore-next-line
user_name: registerForm.userName,
user_othercollege: registerForm.userCollege,
user_othercollege: registerForm.userOtherCollege,
user_referral_code: registerForm.userReferralCode,
user_password: registerForm.userPassword,
user_email: registerForm.userEmail,
Expand Down
4 changes: 3 additions & 1 deletion src/components/Carousel/slideData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ const SlideData: React.FC<SlideDataProps> = ({ details }) => {
};

useEffect(() => {
getRegisteredEvent();
if (localStorage.getItem('token')) {
getRegisteredEvent();
}
}, []);

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Toast = () => {
gutter={8}
containerClassName="toasty"
containerStyle={{
fontFamily: 'Orbitron',
fontFamily: 'DotMatrix_TR',
}}
toastOptions={{
className: '',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ApiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const apiConfig = new Configuration({
if (statusCode === 401 || statusCode === 403) {
localStorage.removeItem('token');
window.location.href = `${HOME_URL}/login`;
window.location.reload();
// window.location.reload();
}
if (statusCode >= 400) {
const body = await context.response.json();
Expand Down

0 comments on commit f32b49c

Please sign in to comment.