-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert most TSX pages to Typescript
- Loading branch information
1 parent
a38ad7a
commit 19af62d
Showing
9 changed files
with
33 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import h from "@macrostrat/hyper"; | ||
import { Link } from "~/renderer/Link"; | ||
|
||
export function Page() { | ||
return h([ | ||
h("h1", "Macrostrat dev"), | ||
h("ul", [ | ||
h("li", h(Link, { href: "map" }, "Map")), | ||
h("li", h(Link, { href: "maps" }, "Map index")), | ||
h("li", h(Link, { href: "dev" }, "Dev layers")), | ||
]), | ||
]); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export { Page }; | ||
|
||
import h from "@macrostrat/hyper"; | ||
|
||
function Page({ is404 }: { is404: boolean }) { | ||
if (is404) { | ||
return h([ | ||
h("h1", "404 Page Not Found"), | ||
h("p", "This page could not be found."), | ||
]); | ||
} else { | ||
return h([h("h1", "500 Internal Error"), h("p", "Something went wrong.")]); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters