diff --git a/src/components/comment.tsx b/src/components/comment.tsx index ad81357..fda666c 100644 --- a/src/components/comment.tsx +++ b/src/components/comment.tsx @@ -1,4 +1,5 @@ import { createSignal, For, Show } from "solid-js"; +import { A } from "@solidjs/router"; import type { CommentDefinition } from "../types"; const pluralize = (n: number) => n + (n === 1 ? " reply" : " replies"); @@ -9,7 +10,7 @@ export default function Comment(props: { comment: CommentDefinition }) { return (
  • - {props.comment.user}{" "} + {props.comment.user}{" "} {props.comment.time_ago} ago
    diff --git a/src/components/nav.tsx b/src/components/nav.tsx index d84ed0c..72fdfaf 100644 --- a/src/components/nav.tsx +++ b/src/components/nav.tsx @@ -1,30 +1,32 @@ +import { A } from "@solidjs/router"; + export default function Nav() { return (
    ); diff --git a/src/routes/[...stories].tsx b/src/routes/[...stories].tsx index dda91d7..cd41223 100644 --- a/src/routes/[...stories].tsx +++ b/src/routes/[...stories].tsx @@ -1,5 +1,6 @@ import { createAsync, + A, type RouteDefinition, cache, type RouteSectionProps, @@ -48,13 +49,13 @@ export default function Stories(props: RouteSectionProps) { } > - {"<"} prev - + page {page()} } > - more {">"} - +
    diff --git a/src/routes/stories/[id].tsx b/src/routes/stories/[id].tsx index f88e9d8..b2cfc4c 100644 --- a/src/routes/stories/[id].tsx +++ b/src/routes/stories/[id].tsx @@ -1,6 +1,7 @@ import { cache, createAsync, + A, type RouteDefinition, type RouteSectionProps, } from "@solidjs/router"; @@ -25,15 +26,15 @@ export default function Story(props: RouteSectionProps) {
    - +

    {story()!.title}

    -
    + ({story()!.domain})

    {story()!.points} points | by{" "} - {story()!.user}{" "} + {story()!.user}{" "} {story()!.time_ago} ago