From 6cf119c1d53bd14ccfc57f6f36fcefed5df2d7b4 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Tue, 18 Apr 2023 19:19:03 +0200 Subject: [PATCH] fix: typing --- previewer/components/ui/preview-app-icon.tsx | 12 +++++++++--- previewer/pages/index.tsx | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/previewer/components/ui/preview-app-icon.tsx b/previewer/components/ui/preview-app-icon.tsx index 71b7aa1..a8f2da2 100644 --- a/previewer/components/ui/preview-app-icon.tsx +++ b/previewer/components/ui/preview-app-icon.tsx @@ -13,16 +13,22 @@ function Icons({ platform, background, color, shape, bgColor, overlay }: { platf
32px + height="32" + /> 64px + height="64" + /> 128px + height="128" + /> {/* { overlay &&
} */}
diff --git a/previewer/pages/index.tsx b/previewer/pages/index.tsx index 39853f4..f43b8b1 100644 --- a/previewer/pages/index.tsx +++ b/previewer/pages/index.tsx @@ -11,7 +11,7 @@ import shapes from '@/config/shapes.json' import colors from '@/config/colors.json' import backgrounds from '@/config/backgrounds.json' -function isLimited(limits: { backgrounds: string[] | undefined; colors: string[] | undefined } | undefined, background: string, color: string) { // {{{ +function isLimited(limits: { backgrounds?: string[]; colors?: string[] } | undefined, background: string, color: string) { // {{{ if(!limits) { return false }