More work on todo list support
This commit is contained in:
@ -4,6 +4,9 @@ import { GuildError } from "./GuildError";
|
||||
import { createPortal, PropsWithChildren } from "preact/compat";
|
||||
import { Import } from "../Import";
|
||||
import { useGuild } from "../App/useGuild";
|
||||
import { Link } from "wouter";
|
||||
|
||||
import "./index.scss";
|
||||
|
||||
export const Guild = ({ children }: PropsWithChildren) => {
|
||||
const guild = useGuild();
|
||||
@ -19,6 +22,23 @@ export const Guild = ({ children }: PropsWithChildren) => {
|
||||
return (
|
||||
<>
|
||||
{importModal}
|
||||
<div class="page-links">
|
||||
<Link
|
||||
class="button is-outlined is-success is-small"
|
||||
href={`/${guild}/reminders`}
|
||||
>
|
||||
<span>Reminders</span>
|
||||
<span class="icon">
|
||||
<i class="fa fa-chevron-right"></i>
|
||||
</span>
|
||||
</Link>
|
||||
<Link class="button is-outlined is-success is-small" href={`/${guild}/todos`}>
|
||||
<span>Todo lists</span>
|
||||
<span class="icon">
|
||||
<i class="fa fa-chevron-right"></i>
|
||||
</span>
|
||||
</Link>
|
||||
</div>
|
||||
{children}
|
||||
</>
|
||||
);
|
||||
|
Reference in New Issue
Block a user