Skip to content

Commit 3db7693

Browse files
committed
tweak
1 parent 149d718 commit 3db7693

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

playground/pages/home.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const Home = () => {
114114
}}
115115
/>
116116
<div class="m-8">
117-
<Show when={!params.user}>
117+
<Show when={!params.user} fallback={<h1 class="text-center text-3xl mb-4">{`${params.user}'s`} Repls</h1>}>
118118
<div class="flex flex-col align-middle mb-16">
119119
<button
120120
class="bg-solid-lightgray shadow-md dark:bg-solid-darkLighterBg rounded-xl p-4 text-3xl flex mx-auto"
@@ -147,8 +147,6 @@ export const Home = () => {
147147
</p>
148148
</div>
149149
</Show>
150-
151-
<h1 class="text-center text-3xl mb-4">{params.user ? `${params.user}'s` : 'My'} Repls</h1>
152150
<table class="w-200 max-w-full mx-auto">
153151
<thead>
154152
<tr class="border-b border-neutral-600">

0 commit comments

Comments
 (0)