Fixed unnecessary styling
This commit is contained in:
parent
8b1654fc16
commit
608cef5827
1 changed files with 12 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import './Row.sass'
|
||||
// import { Switch, Match } from 'solid-js'
|
||||
import { Show } from 'solid-js'
|
||||
|
||||
interface Props {
|
||||
children: any
|
||||
|
|
@ -10,9 +10,17 @@ interface Props {
|
|||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<Show when={props.gap}>
|
||||
<div class={props.content} style={`gap: ${props.gap}rem`}>
|
||||
{props.children}
|
||||
</div>
|
||||
</Show>
|
||||
|
||||
<Show when={!props.gap}>
|
||||
<div class={props.content} >
|
||||
{props.children}
|
||||
</div>
|
||||
</Show>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue