Skip to content

Commit

Permalink
fix for github-page (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsumura-h authored Sep 29, 2023
1 parent 76ed1cc commit f19eacc
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions examples/document/pages/api_access_page.nim
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,9 @@ proc StarWarsSearchComponent():Component {.exportc.} =

return html(fmt"""
<input type="text" oninput=${updateName} class="w-full" placeholder="Type name of character in Star Wars" />
<${Show} when=${isDisplay} fallback=${
html`
<p class="bg-pink-300 text-red-500 font-bold">Character not found</p>
`
}>
<${Show} when=${isDisplay} fallback=${html`
<p class="bg-pink-300 text-red-500 font-bold">Character not found</p>
`}>
<table>
<thead>
<tr>
Expand Down Expand Up @@ -205,11 +203,9 @@ proc StarWarsSearchComponent():Component {.exportc.} =
return html(fmt\"\""
<input type="text" oninput=${updateName} class="w-full" placeholder="Type name" />
<${Show} when=${hasUsers} fallback=${\
html`\
<p class="bg-pink-300 text-red-500 font-bold">Character not found</p>
`\
}>
<${Show} when=${hasUsers} fallback=${html`\
<p class="bg-pink-300 text-red-500 font-bold">Character not found</p>
`}>
<table>
<thead>
<tr>
Expand Down

0 comments on commit f19eacc

Please sign in to comment.