Skip to content

Commit ad717fa

Browse files
committed
set 2025 default and auto removable coming soon note
1 parent 9691001 commit ad717fa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/components/Projects.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,16 @@ const ComingSoon = () => (
2727
<div className="coming-soon">
2828
<h3 className="coming-soon-title">Coming Soon!</h3>
2929
<p className="coming-soon-text">
30-
Projects for BrainHack Vanderbilt 2025 will appear here soon.
30+
Projects for BrainHack Vanderbilt will appear here soon.
3131
Stay tuned for exciting new projects!
3232
</p>
3333
</div>
3434
);
3535

3636
function Projects() {
37-
const [currentYear, setCurrentYear] = useState("2024");
37+
const [currentYear, setCurrentYear] = useState("2025");
3838

39-
40-
console.log(`projectsData: ${projectsData}`);
39+
console.log(`projectsData: ${projectsData}`);
4140
const years = Object.keys(projectsData).sort((a, b) => b - a);
4241

4342
return (
@@ -58,7 +57,7 @@ console.log(`projectsData: ${projectsData}`);
5857
/>
5958
</div>
6059

61-
{currentYear === "2025" ? (
60+
{(projectsData[currentYear].length === 0) ? (
6261
<ComingSoon />
6362
) : (
6463
<Row className="project-card-row">

0 commit comments

Comments
 (0)