Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:Registration of nitr student #241

Merged
merged 22 commits into from
Nov 3, 2024
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8971f9c
Feat: improved Upper Slider,lower Slider,fix Responsiveness of EventPage
AYANscyy2 Oct 24, 2024
a08cdc3
Feat:fix minor changes
AYANscyy2 Oct 24, 2024
cec9ae8
Merge branch 'dscnitrourkela:main' into main
AYANscyy2 Oct 24, 2024
9eea842
Merge branch 'dscnitrourkela:main' into main
AYANscyy2 Oct 25, 2024
50bc1a5
feat:add payment Section in Register Form
AYANscyy2 Oct 25, 2024
8586a51
Merge branch 'dscnitrourkela:main' into main
AYANscyy2 Oct 26, 2024
5dbdd90
feat:update payment section in register page
AYANscyy2 Oct 26, 2024
248c976
feat:update payment section in registration page
AYANscyy2 Oct 26, 2024
b22c75c
Merge branch 'main' into main
AYANscyy2 Oct 26, 2024
7a9657d
feat: fix prettier issue
AYANscyy2 Oct 26, 2024
819db88
Merge branch 'main' of https://github.com/AYANscyy2/project-raisin
AYANscyy2 Oct 26, 2024
cc80cd3
fix: prettier fix
AYANscyy2 Oct 26, 2024
64f8265
feat: update Payment Section
AYANscyy2 Oct 26, 2024
eb260ea
Merge branch 'main' into main
AYANscyy2 Oct 26, 2024
5cee147
fix:prettier issue
AYANscyy2 Oct 26, 2024
acc6b07
Merge branch 'dscnitrourkela:main' into main
AYANscyy2 Oct 26, 2024
06b3138
Merge branch 'dscnitrourkela:main' into main
AYANscyy2 Oct 27, 2024
4b3f164
Merge branch 'dscnitrourkela:main' into main
AYANscyy2 Oct 29, 2024
ca50b42
faet: fix event section rendering, update eventdata.
AYANscyy2 Oct 29, 2024
831e319
Merge branch 'dscnitrourkela:main' into main
AYANscyy2 Nov 2, 2024
e2f9a73
fix:registration nitr student
AYANscyy2 Nov 2, 2024
8cc8127
fix:minor changes
AYANscyy2 Nov 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/components/EventsPage/Event/Event.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const initialState = {
uid: null,
registered: false,
hasPaid: false,
isNitR: false,
isCurrentSlideId: 0,
};

Expand Down Expand Up @@ -49,9 +50,9 @@ export const Events = ({ EventItem }) => {
const userData = Cookies.get('userDataDB');

if (userData) {
const { id, hasPaid } = JSON.parse(userData);
const { id, hasPaid, isNitR } = JSON.parse(userData);

setState((prev) => ({ ...prev, uid: id, hasPaid }));
setState((prev) => ({ ...prev, uid: id, hasPaid, isNitR }));
}
} catch (error) {
console.error('Error parsing user data cookie:', error);
Expand Down Expand Up @@ -115,7 +116,7 @@ export const Events = ({ EventItem }) => {
}));

try {
if (state.hasPaid) {
if (state.hasPaid || state.isNitR) {
const response = await handleLoadingAndToast(
registerForEvent({
variables: {
Expand Down
Loading