Start work on todo list support for dashboard

This commit is contained in:
jude
2024-04-06 14:27:58 +01:00
parent b951db3f55
commit 9989ab3b35
8 changed files with 170 additions and 5 deletions

View File

@ -1,12 +1,11 @@
import { useQuery } from "react-query";
import { fetchGuildInfo } from "../../api";
import { GuildReminders } from "./GuildReminders";
import { GuildError } from "./GuildError";
import { createPortal } from "preact/compat";
import { createPortal, PropsWithChildren } from "preact/compat";
import { Import } from "../Import";
import { useGuild } from "../App/useGuild";
export const Guild = () => {
export const Guild = ({ children }: PropsWithChildren) => {
const guild = useGuild();
const { isSuccess, data: guildInfo } = useQuery(fetchGuildInfo(guild));
@ -20,7 +19,7 @@ export const Guild = () => {
return (
<>
{importModal}
<GuildReminders />
{children}
</>
);
}