docs: Add detail to Deno KV auth example (#1665)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user