Add routes for getting/posting user reminders

This commit is contained in:
jude
2024-03-05 20:36:38 +00:00
parent dbe8e8e358
commit 5f0aa0f834
12 changed files with 381 additions and 66 deletions

View File

@ -9,6 +9,7 @@ import { ReminderContext } from "./ReminderContext";
import { useQuery } from "react-query";
import { useParams } from "wouter";
import "./styles.scss";
import { useGuild } from "../App/useGuild";
function defaultReminder(): Reminder {
return {
@ -42,7 +43,7 @@ function defaultReminder(): Reminder {
}
export const CreateReminder = () => {
const { guild } = useParams();
const guild = useGuild();
const [reminder, setReminder] = useState(defaultReminder());
const [collapsed, setCollapsed] = useState(false);