Skip to content

Commit 22db7a9

Browse files
Update team colors
1 parent 5c0d8c3 commit 22db7a9

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

src/app/team/[slug]/page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ export const metadata = {
1919
export default async function SchedulePage({ params }) {
2020
const { slug } = await params;
2121
let team = getTeamDataByAbbreviation(slug?.toUpperCase(), true);
22-
if (!team || team.abbreviation === 'NHL') {
22+
if (!team.teamId || team.abbreviation === 'NHL') {
2323
team = getTeamDataBySlug(slug);
2424
}
2525

26-
if (!team || team.abbreviation === 'NHL') {
26+
if (!team.teamId || team.abbreviation === 'NHL') {
2727
return (
2828
<div className="py-10 text-center text-2xl" style={{ minHeight: '60vh'}}>
2929
Team not found matching {slug}.

src/app/utils/teamData.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,33 @@ const teamData = [
285285
teamColor: '#041e42',
286286
secondaryTeamColor: '#296ec8',
287287
teamId: 52,
288-
}
288+
},
289+
// International
290+
{
291+
name: 'Canada',
292+
abbreviation: 'CAN',
293+
teamColor: '#c8102e',
294+
secondaryTeamColor: '#ddcba4',
295+
},
296+
{
297+
name: 'Finland',
298+
abbreviation: 'FIN',
299+
teamColor: '#041e42',
300+
secondaryTeamColor: '#ffb81c',
301+
},
302+
{
303+
name: 'Sweden',
304+
abbreviation: 'SWE',
305+
teamColor: '#006EB3',
306+
secondaryTeamColor: '#041e42',
307+
},
308+
{
309+
name: 'USA',
310+
abbreviation: 'USA',
311+
teamColor: '#003087',
312+
secondaryTeamColor: '#c8102e',
313+
},
314+
289315
];
290316

291317
const defaultTeam = (isHome) => {

0 commit comments

Comments
 (0)