docs: Add detail to Deno KV auth example (#1665)

This commit is contained in:
Josh Gum
2023-09-03 21:54:12 +00:00
committed by GitHub
parent f9ab05f7ea
commit 3858f5ad03
10 changed files with 22 additions and 16 deletions
@@ -53,7 +53,7 @@ export default function Countdown(props: { target: string }) {
}, [props.target]);
const secondsLeft = Math.floor(
(target.getTime() - now.value.getTime()) / 1000
(target.getTime() - now.value.getTime()) / 1000,
);
// If the target date has passed, we stop counting down.
+1 -1
View File
@@ -28,7 +28,7 @@ interface GitHubResponse {
export default async function Page(_req: Request, ctx: RouteContext) {
const resp = await fetch(
`https://api.github.com/users/${ctx.params.username}`
`https://api.github.com/users/${ctx.params.username}`,
);
if (!resp.ok) {
@@ -57,9 +57,7 @@ export default function Page({ data }: PageProps<Data>) {
<button type="submit">Search</button>
</form>
<ul>
{results.map((name) => (
<li key={name}>{name}</li>
))}
{results.map((name) => <li key={name}>{name}</li>)}
</ul>
</div>
);