This commit is contained in:
jude 2024-04-20 22:14:49 +01:00
parent 1d06999e41
commit 3fc27b466a
3 changed files with 17 additions and 18 deletions

2
Cargo.lock generated
View File

@ -2502,7 +2502,7 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
[[package]]
name = "reminder-rs"
version = "1.7.13"
version = "1.7.14"
dependencies = [
"axum",
"base64 0.22.0",

View File

@ -1,6 +1,6 @@
[package]
name = "reminder-rs"
version = "1.7.13"
version = "1.7.14"
authors = ["Jude Southworth <judesouthworth@pm.me>"]
edition = "2021"
license = "AGPL-3.0 only"

View File

@ -1,16 +1,15 @@
import { useState } from "preact/hooks";
import { fetchGuildChannels, Reminder } from "../../api";
import { DateTime } from "luxon";
import { CreateButtonRow } from "./ButtonRow/CreateButtonRow";
import { TopBar } from "./TopBar";
import { Message } from "./Message";
import { Settings } from "./Settings";
import { ReminderContext } from "./ReminderContext";
import { useQuery } from "react-query";
import {useState} from "preact/hooks";
import {fetchGuildChannels, Reminder} from "../../api";
import {DateTime} from "luxon";
import {CreateButtonRow} from "./ButtonRow/CreateButtonRow";
import {TopBar} from "./TopBar";
import {Message} from "./Message";
import {Settings} from "./Settings";
import {ReminderContext} from "./ReminderContext";
import {useQuery} from "react-query";
import "./styles.scss";
import { useGuild } from "../App/useGuild";
import { DEFAULT_COLOR } from "./Embed";
import { useTimezone } from "../App/TimezoneProvider";
import {useGuild} from "../App/useGuild";
import {DEFAULT_COLOR} from "./Embed";
function defaultReminder(): Reminder {
return {
@ -49,7 +48,7 @@ export const CreateReminder = () => {
const [reminder, setReminder] = useState(defaultReminder());
const [collapsed, setCollapsed] = useState(false);
const { isSuccess, data: guildChannels } = useQuery(fetchGuildChannels(guild));
const {isSuccess, data: guildChannels} = useQuery(fetchGuildChannels(guild));
if (isSuccess && reminder.channel === null) {
setReminder((reminder) => ({
@ -68,10 +67,10 @@ export const CreateReminder = () => {
}}
/>
<div class="columns reminder-settings">
<Message />
<Settings />
<Message/>
<Settings/>
</div>
<CreateButtonRow />
<CreateButtonRow/>
</div>
</ReminderContext.Provider>
);