Fixed unnecessary styling

This commit is contained in:
Patrick Alvin Alcala 2025-09-02 10:35:53 +08:00
parent 8b1654fc16
commit 608cef5827

View file

@ -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 (
<>
<div class={props.content} style={`gap: ${props.gap}rem`}>
{props.children}
</div>
<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>
</>
)
}