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

Merge Develop and Restructure Files #2562

Merged
merged 18 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 13 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"date-fns": "^3.3.1",
"history": "^5.3.0",
"lodash": "^4.17.21",
"luxon": "^3.4.4",
"prop-types": ">=15.7.2",
"react": "^18.3.1",
"react-big-calendar": "^1.10.3",
Expand All @@ -42,10 +41,10 @@
},
"devDependencies": {
"@types/lodash": "^4.14.202",
"@types/luxon": "^3.4.2",
"@types/react-big-calendar": "^1.8.8",
"@types/react-dom": "^18.3.0",
"@types/react-router-dom": "^5.3.3",
"@types/react-router-hash-link": "^2.4.9",
"@vitejs/plugin-react": "^4.2.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-import": "^2.29.1",
Expand Down

This file was deleted.

106 changes: 0 additions & 106 deletions src/components/EventList/components/EventItem/index.tsx

This file was deleted.

80 changes: 0 additions & 80 deletions src/components/EventList/index.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/Loader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ type Props = CircularProgressProps & {
inline?: boolean;
};

const GordonLoader = ({ size = 100, color = 'primary', inline = false }: Props) => {
const GordonLoader = ({ size = 100, color = 'primary', inline = false, ...otherProps }: Props) => {
if (inline) return <CircularProgress size={size} color={color} />;
return (
<Grid className={styles.gordon_loader} container justifyContent="center" alignItems="center">
<Grid item>
<CircularProgress size={size} color={color} />
<CircularProgress size={size} color={color} {...otherProps} />
</Grid>
</Grid>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
import { Calendar, luxonLocalizer } from 'react-big-calendar';
import { Calendar, dateFnsLocalizer } from 'react-big-calendar';
import { CourseEvent, Schedule, scheduleCalendarResources } from 'services/schedule';
import './ScheduleCalendar.css';
import { DateTime } from 'luxon';
import { format, getDay, startOfWeek } from 'date-fns';
import { enUS } from 'date-fns/locale';

const localizer = luxonLocalizer(DateTime, { firstDayOfWeek: 1 });
const locales = {
'en-US': enUS,
};

const localizer = dateFnsLocalizer({
format,
startOfWeek,
getDay,
locales,
});

type Props = {
schedule: Schedule;
Expand Down
10 changes: 1 addition & 9 deletions src/routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import BannerSubmission from './views/BannerSubmission';
import CoCurricularTranscript from './views/CoCurricularTranscript';
import EnrollmentCheckIn from './views/EnrollmentCheckIn';
import Events from './views/Events';
import EventsAttended from './views/EventsAttended';
import Feedback from './views/Feedback';
import Help from './views/Help';
import Home from './views/Home';
Expand All @@ -23,9 +22,7 @@ import PublicProfile from './views/PublicProfile';
import Timesheets from './views/Timesheets';
import RecIM from './views/RecIM';
import RoomRanges from 'views/ResLife/components/RDView/components/RoomRanges';
import { element } from 'prop-types';
import { Room } from '@mui/icons-material';
import CampusSafety from './views/CampusSafety';
import CampusSafety from './views/LostAndFound';

// Route order must be from most specific to least specific (i.e. `/user/:username` before `/user`)
const routes = [
Expand Down Expand Up @@ -69,11 +66,6 @@ const routes = [
path: '/events',
element: <Events />,
},
{
name: 'Attended',
path: '/attended',
element: <EventsAttended />,
},
{
name: 'Feedback',
path: '/feedback',
Expand Down
Loading
Loading