The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add a size map (#29100)
Terry Suttone4b0dc087103
diff --git a/packages/ui/src/lib/Layout/InputErrorIcon.tsx b/packages/ui/src/lib/Layout/InputErrorIcon.tsxindex 6d90b567857..08cb9d5d2c2 100644--- a/packages/ui/src/lib/Layout/InputErrorIcon.tsx+++ b/packages/ui/src/lib/Layout/InputErrorIcon.tsx@@ -7,12 +7,20 @@ interface Props {size?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'}-export default function InputErrorIcon({ style, size }: Props) {+const sizeMap = {+ tiny: 14,+ small: 16,+ medium: 20,+ large: 24,+ xlarge: 32,+}++export default function InputErrorIcon({ style, size = 'medium' }: Props) {const __styles = styleHandler('inputErrorIcon')return (<div className={__styles.base} style={style}>- <AlertCircle size={size} strokeWidth={2} />+ <AlertCircle size={sizeMap[size]} strokeWidth={2} /></div>)}