Skip to content

Commit

Permalink
Sv/migration cleanup (#297)
Browse files Browse the repository at this point in the history
* fix eslint warning- mostly changing img to Image

* refactor components folder files code for formatting

* refactor all code for formatting

* refactor file structure in src

* clean up public folder

* linting and prettier fixes

* linting errors

---------

Co-authored-by: Saloni Vaishnav <[email protected]>
  • Loading branch information
inolasv and Saloni Vaishnav authored May 31, 2024
1 parent 88b51e0 commit 443ef7b
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 87 deletions.
6 changes: 5 additions & 1 deletion src/components/OfficerModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ function OfficerInformation(
<ComputerWindow className={styles.window} topbarColor="#D2616C">
<div className={styles.officerInfo}>
<h3 className={styles.title}>
{name} - {position}
{name}
{' '}
-
{' '}
{position}
</h3>

<div className="columnContainer">
Expand Down
4 changes: 2 additions & 2 deletions src/components/Sponsor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import styles from '@/styles/components/Sponsor.module.css';
export default function Sponsor({ sponsor, url, tier }) {
const link = url
? () => {
window.open(url, '_blank').focus();
}
window.open(url, '_blank').focus();
}
: null;

return (
Expand Down
4 changes: 2 additions & 2 deletions src/components/StayInTouchKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import styles from '@/styles/components/Key.module.css';
export default function Key({ children, url }) {
const link = url
? () => {
window.open(url, '_blank').focus();
}
window.open(url, '_blank').focus();
}
: null;

return (
Expand Down
71 changes: 0 additions & 71 deletions src/components/navbar.js

This file was deleted.

3 changes: 2 additions & 1 deletion src/pages/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default function Dev() {
target="_blank"
rel="noopener noreferrer"
>
By{' '}
By
{' '}
<Image
src="/vercel.svg"
alt="Vercel Logo"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/officers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import OfficerCard from "@/components/OfficerCard";
import React from "react";
import React from 'react';

import OfficerCard from '../components/OfficerCard';
import officerData from '../data/officers.json';
import styles from '@/styles/pages/Officers.module.css';

Expand Down
8 changes: 4 additions & 4 deletions src/pages/openoffice.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export default function OpenOffice() {
>
{' '}
</th>
{data[weekNum][week].map(({ heading, rows }, index) => (
{data[weekNum][week].map(({ heading, rows }) => (
<th
key={index}
key={rows}
className={`${styles.openOfficeDay} ${styles.th}`}
>
<p>{heading}</p>
Expand All @@ -85,9 +85,9 @@ export default function OpenOffice() {
</div>
</td>

{data[weekNum][week].map(({ heading, rows }, index) => (
{data[weekNum][week].map(({ heading, rows }) => (
<td
key={index}
key={heading}
className={`${styles.openOfficeCell} ${styles.td}`}
>
<div className={`${styles.openOfficeCellContainer}`}>
Expand Down
3 changes: 2 additions & 1 deletion src/sections/SponsorsSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export default function SponsorsSection() {
<div className={styles.sectionContainer}>
<h2 className={styles.header}>Our Sponsors</h2>
<h3 className={styles.sponsorCall}>
If you are interested in sponsoring us, please email{' '}
If you are interested in sponsoring us, please email
{' '}
<a
className={styles.sponsorEmail}
href="mailto:[email protected]"
Expand Down
5 changes: 2 additions & 3 deletions src/sections/UpcomingEventsSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export default function UpcomingEventsSection() {
useEffect(() => {
const fetchEvents = async () => {
try {
const eventsUrl =
'https://script.google.com/macros/s/AKfycbzXcTVpPJoRs2nCW_i9NEzG_sd_qpBcPofW_-8FVUZzTUzz8HPH4ab-RmkNNxNVDZOk/exec';
const eventsUrl = 'https://script.google.com/macros/s/AKfycbzXcTVpPJoRs2nCW_i9NEzG_sd_qpBcPofW_-8FVUZzTUzz8HPH4ab-RmkNNxNVDZOk/exec';
const res = await fetch(eventsUrl);
const { events: fetchedEvents } = await res.json();
setEvents(
Expand Down Expand Up @@ -51,7 +50,7 @@ export default function UpcomingEventsSection() {
}),
);
} catch (error) {
console.error('Error fetching events:', error);
// console.error('Error fetching events:', error);
}
};

Expand Down

0 comments on commit 443ef7b

Please sign in to comment.