Fixed children prop use of any

This commit is contained in:
Patrick Alvin Alcala 2025-09-02 11:03:38 +08:00
parent 608cef5827
commit 4774e8b51f
5 changed files with 6 additions and 8 deletions

View file

@ -1,7 +1,7 @@
import './Column.sass'
interface Props {
children: any
children: HTMLElement
content: 'top' | 'center' | 'right' | 'split' | 'spaced'
gap?: number
}

View file

@ -1,7 +1,7 @@
import './Footer.sass'
interface Props {
children: any
children: HTMLElement
}
export default (props: Props) => {

View file

@ -4,7 +4,7 @@ interface Props {
title: string
name: string
description: string
children: any
children: HTMLElement
font?: string
}

View file

@ -4,7 +4,7 @@ import Row from '../Row/Row'
interface Props {
transparent?: boolean
children: any
children: HTMLElement
}
export default (props: Props) => {

View file

@ -2,7 +2,7 @@ import './Row.sass'
import { Show } from 'solid-js'
interface Props {
children: any
children: HTMLElement
content: 'left' | 'center' | 'right' | 'split' | 'spaced' | 'even'
gap?: number
}
@ -17,9 +17,7 @@ export default (props: Props) => {
</Show>
<Show when={!props.gap}>
<div class={props.content} >
{props.children}
</div>
<div class={props.content}>{props.children}</div>
</Show>
</>
)