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'
|
import './Column.sass'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
children: any
|
children: HTMLElement
|
||||||
content: 'top' | 'center' | 'right' | 'split' | 'spaced'
|
content: 'top' | 'center' | 'right' | 'split' | 'spaced'
|
||||||
gap?: number
|
gap?: number
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import './Footer.sass'
|
import './Footer.sass'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
children: any
|
children: HTMLElement
|
||||||
}
|
}
|
||||||
|
|
||||||
export default (props: Props) => {
|
export default (props: Props) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ interface Props {
|
||||||
title: string
|
title: string
|
||||||
name: string
|
name: string
|
||||||
description: string
|
description: string
|
||||||
children: any
|
children: HTMLElement
|
||||||
font?: string
|
font?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import Row from '../Row/Row'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
transparent?: boolean
|
transparent?: boolean
|
||||||
children: any
|
children: HTMLElement
|
||||||
}
|
}
|
||||||
|
|
||||||
export default (props: Props) => {
|
export default (props: Props) => {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import './Row.sass'
|
||||||
import { Show } from 'solid-js'
|
import { Show } from 'solid-js'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
children: any
|
children: HTMLElement
|
||||||
content: 'left' | 'center' | 'right' | 'split' | 'spaced' | 'even'
|
content: 'left' | 'center' | 'right' | 'split' | 'spaced' | 'even'
|
||||||
gap?: number
|
gap?: number
|
||||||
}
|
}
|
||||||
|
|
@ -17,9 +17,7 @@ export default (props: Props) => {
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<Show when={!props.gap}>
|
<Show when={!props.gap}>
|
||||||
<div class={props.content} >
|
<div class={props.content}>{props.children}</div>
|
||||||
{props.children}
|
|
||||||
</div>
|
|
||||||
</Show>
|
</Show>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue