Skip to content

Commit a81b2d2

Browse files
committed
pointless show
1 parent 3dc0891 commit a81b2d2

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

frontend/src/ts/components/layout/overlays/Banners.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,7 @@ function Banner(props: BannerType): JSXElement {
4949
/>
5050
<i class={`self-center ${icon()} xl:hidden`}></i>
5151
</Show>
52-
<Show
53-
when={props.customContent !== undefined}
54-
fallback={<div class="self-center p-2">{props.text}</div>}
55-
>
56-
<div class="self-center p-2">{props.customContent}</div>
57-
</Show>
52+
<div class="self-center p-2">{props.customContent ?? props.text}</div>
5853
<Show
5954
when={props.important === true}
6055
fallback={

0 commit comments

Comments
 (0)