Skip to content

Commit

Permalink
fixed feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaitya2108 committed Jan 10, 2025
1 parent a2748dd commit c555a79
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 22 deletions.
20 changes: 2 additions & 18 deletions src/components/common/VerticalFormItem/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,30 +57,14 @@
line-height: 1.75rem;
margin: 0;
outline: none;
// overflow-y: auto; /* Allow scrolling if there are many options */
padding: 2px;
transition: 0.3s ease;
width: 100%;

// &::-ms-expand {
// display: none;
// }

}

// .selectedOptions {
// align-items: center;
// appearance: none;
// background-color: var(--theme-background);
// border: 0;
// border-radius: 0.25em;
// font-family: inherit;
// font-size: 1em;
// height: auto; /* Adjust height to match your dropdown */
// line-height: 1.75rem;
// margin: 0;
// outline: none;
// width: 100%;
// }

}

.formError {
Expand Down
3 changes: 2 additions & 1 deletion src/pages/admin/attendance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
VerticalFormTitle,
} from '@/components/common';
import { showToast, config } from '@/lib';
import { reportError } from '@/lib/utils';
import { PermissionService } from '@/lib/services';
import withAccessType, { GetServerSidePropsWithAuth } from '@/lib/hoc/withAccessType';
import type { NextPage } from 'next';
Expand Down Expand Up @@ -43,7 +44,7 @@ const AwardPointsPage: NextPage<AwardPointsPageProps> = ({
await AdminAPI.addAttendance(authToken, email, selectedUUID || '');
showToast('Successfully awarded attendance!');
} catch (error) {
showToast('An error occurred');
reportError('Error found!', error);
}
};

Expand Down
3 changes: 2 additions & 1 deletion src/pages/admin/milestone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from '@/components/common';
import { showToast, config } from '@/lib';
import { AdminAPI } from '@/lib/api';
import { reportError } from '@/lib/utils';
import withAccessType, { GetServerSidePropsWithAuth } from '@/lib/hoc/withAccessType';
import { PermissionService } from '@/lib/services';
import type { NextPage } from 'next';
Expand Down Expand Up @@ -33,7 +34,7 @@ const AwardPointsPage: NextPage<AwardPointsPageProps> = ({ authToken }) => {
await AdminAPI.createMilestone(authToken, name, Number(points));
showToast('Successfully awarded attendance!');
} catch (error) {
showToast('Error found!');
reportError('Error found!', error);
}
};

Expand Down
4 changes: 2 additions & 2 deletions src/pages/admin/points.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { showToast, config } from '@/lib';
import withAccessType, { GetServerSidePropsWithAuth } from '@/lib/hoc/withAccessType';
import { PermissionService } from '@/lib/services';

import { reportError } from '@/lib/utils';
import { AdminAPI, EventAPI } from '@/lib/api';

import type { NextPage } from 'next';
Expand Down Expand Up @@ -49,7 +49,7 @@ const AwardPointsPage: NextPage<AwardPointsPageProps> = ({

showToast('Successfully awarded points!');
} catch (error) {
showToast('An error occurred!');
reportError('Error found!', error);
}
};

Expand Down

0 comments on commit c555a79

Please sign in to comment.