diff --git a/app/components/TeamInfo/index.tsx b/app/components/TeamInfo/index.tsx index cedbc0b..f296b4e 100644 --- a/app/components/TeamInfo/index.tsx +++ b/app/components/TeamInfo/index.tsx @@ -20,7 +20,7 @@ export const TeamInfo = ({ teamRecord, }: TeamInfoProps) => (
- + { +export const TeamLogo = ({ + teamAbbreviation, + teamName, + size = "sm", +}: TeamLogoProps) => { + const sizeVariants: SizeMap = { + lg: "h-16 w-16", + md: "h-12 w-12", + sm: "h-8 w-8", + }; + return ( {`${teamName} ); }; diff --git a/app/components/sizes.ts b/app/components/sizes.ts new file mode 100644 index 0000000..0d5d1d4 --- /dev/null +++ b/app/components/sizes.ts @@ -0,0 +1 @@ +export type Sizes = "sm" | "md" | "lg"; diff --git a/package.json b/package.json index e4c1c27..a8844f4 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "test:watch": "TZ=UTC jest --watch --maxWorkers=25%", "test:ci": "TZ=UTC jest --runInBand", "typecheck": "tsc -b", - "storybook": "storybook dev -p 6006", + "storybook": "run-p -s 'dev:css' 'storybook:run'", + "storybook:run": "storybook dev -p 6006", "build-storybook": "storybook build" }, "dependencies": {