-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Separate data files to improve organization (fixes #22)
- Loading branch information
1 parent
4dee2e3
commit 874f73e
Showing
22 changed files
with
339 additions
and
326 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import React, { useState } from 'react'; | ||
import YearChip from '@/components/elements/YearChip'; | ||
import { v4 as uuidv4 } from 'uuid'; | ||
|
||
const YearSelector = ({ years, selectedYear, handleYearChange }) => { | ||
return ( | ||
<div className="mb-4 flex gap-2"> | ||
{years.map(year => (<YearChip key={year} year={year} selectedYear={selectedYear} handleYearChange={handleYearChange} />))} | ||
{years.map(year => ( | ||
<YearChip key={uuidv4()} year={year} selectedYear={selectedYear} handleYearChange={handleYearChange} />))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default YearSelector; | ||
export default YearSelector; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export const communities = [{ | ||
logo: '/images/communities/gdg_montreal.svg', company: 'GDG Montreal', website: 'https://gdgmontreal.com/', | ||
}, { | ||
logo: '/images/communities/fluttermtl.svg', company: 'Flutter Montreal', website: 'https://fluttermtl.dev/', | ||
}, { | ||
logo: '/images/communities/wtm_mtl.svg', company: 'WTM Montreal', website: 'https://wtmmontreal.com/', | ||
}, { | ||
logo: '/images/communities/gdg_cloud.svg', | ||
company: 'GDG Cloud Montreal', | ||
website: 'https://gdg.community.dev/gdg-cloud-montreal/', | ||
}, { | ||
logo: '/images/communities/gdsc_concordia.svg', | ||
company: 'GSDC Concordia', | ||
website: 'https://gdsc.community.dev/concordia-university-montreal-canada/', | ||
}, { | ||
logo: '/images/communities/gdsc_mcgill.svg', | ||
company: 'GSDC McGill', | ||
website: 'https://gdsc.community.dev/mcgill-university-montreal-canada/', | ||
}]; | ||
|
Oops, something went wrong.