Fixed children prop use of any
This commit is contained in:
parent
608cef5827
commit
4774e8b51f
5 changed files with 6 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import './Column.sass'
|
||||
|
||||
interface Props {
|
||||
children: any
|
||||
children: HTMLElement
|
||||
content: 'top' | 'center' | 'right' | 'split' | 'spaced'
|
||||
gap?: number
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import './Footer.sass'
|
||||
|
||||
interface Props {
|
||||
children: any
|
||||
children: HTMLElement
|
||||
}
|
||||
|
||||
export default (props: Props) => {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ interface Props {
|
|||
title: string
|
||||
name: string
|
||||
description: string
|
||||
children: any
|
||||
children: HTMLElement
|
||||
font?: string
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import Row from '../Row/Row'
|
|||
|
||||
interface Props {
|
||||
transparent?: boolean
|
||||
children: any
|
||||
children: HTMLElement
|
||||
}
|
||||
|
||||
export default (props: Props) => {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
</>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue