We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dc0891 commit a81b2d2Copy full SHA for a81b2d2
1 file changed
frontend/src/ts/components/layout/overlays/Banners.tsx
@@ -49,12 +49,7 @@ function Banner(props: BannerType): JSXElement {
49
/>
50
<i class={`self-center ${icon()} xl:hidden`}></i>
51
</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>
+ <div class="self-center p-2">{props.customContent ?? props.text}</div>
58
<Show
59
when={props.important === true}
60
fallback={
0 commit comments