Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
diogogmatos committed Sep 28, 2023
1 parent 4138265 commit 0b6a576
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/equipa/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import teamData from "@/data/TeamPageData.json";
import React, { useState } from "react";
import DatePicker from "@/components/DatePicker";
import Teams from "@/components/Team";
import Team from "@/components/Team";

export default function Team() {
export default function Equipa() {
const yearDefault = "2023";
const [selectedYear, setSelectedYear] = useState(yearDefault);

Expand All @@ -24,7 +24,7 @@ export default function Team() {
onYearChange={onYearChange}
/>
</div>
{selectedYearData && <Teams yearData={selectedYearData} />}
{selectedYearData && <Team yearData={selectedYearData} />}
</main>
);
}
4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export default function RootLayout({
}: {
children: React.ReactNode;
}) {
const [width, setWidth] = useState<number>(window.innerWidth);
const [height, setHeight] = useState<number>(window.innerHeight);
const [width, setWidth] = useState<number>(0);
const [height, setHeight] = useState<number>(0);

// "Listens" for changes in the window size and updates the nr of lines accordingly
useEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions components/Team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface TeamsProps {
yearData: YearData;
}

const Teams: React.FC<TeamsProps> = ({ yearData }) => {
const Team: React.FC<TeamsProps> = ({ yearData }) => {
return (
<ul className="mx-24 mt-8 flex flex-col gap-10">
{yearData.team.map((item) => (
Expand All @@ -45,4 +45,4 @@ const Teams: React.FC<TeamsProps> = ({ yearData }) => {
);
};

export default Teams;
export default Team;

0 comments on commit 0b6a576

Please sign in to comment.