fix: typing

This commit is contained in:
Baptiste Augrain 2023-04-18 19:19:03 +02:00
parent 306dde0a86
commit 6cf119c1d5
2 changed files with 10 additions and 4 deletions

View File

@ -13,16 +13,22 @@ function Icons({ platform, background, color, shape, bgColor, overlay }: { platf
<div className="flex flex-row items-end gap-8 p-8 relative">
<img
src={src}
alt="32px"
width="32"
/>
height="32"
/>
<img
src={src}
alt="64px"
width="64"
/>
height="64"
/>
<img
src={src}
alt="128px"
width="128"
/>
height="128"
/>
{/* { overlay && <div className={`${styles[`overlay${color}`]} absolute left-0 top-0 w-full h-full`}></div> } */}
</div>
</div>

View File

@ -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
}