From f9105cc3e799211b2f7c8325bb28293036f54017 Mon Sep 17 00:00:00 2001 From: Anass Bouassaba Date: Sat, 23 Nov 2024 09:36:44 +0100 Subject: [PATCH] fix: make size prop required in logo component (#25) --- package.json | 2 +- src/components/logo/logo.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ca3aaed..d52cfa7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@koupr/ui", - "version": "1.12.0", + "version": "1.12.1", "license": "MIT", "type": "module", "source": "src/index.ts", diff --git a/src/components/logo/logo.tsx b/src/components/logo/logo.tsx index 8757a82..e35529b 100644 --- a/src/components/logo/logo.tsx +++ b/src/components/logo/logo.tsx @@ -22,7 +22,7 @@ export type LogoProps = CenterProps & { size?: 'sm' | 'md' } -export const Logo = ({ type, size, isGlossy = false }: LogoProps) => { +export const Logo = ({ type, size = 'sm', isGlossy = false }: LogoProps) => { const { colorMode } = useColorMode() const getSvg = useCallback(() => { if (type == 'voltaserve') {