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]] [[package]]
name = "reminder-rs" name = "reminder-rs"
version = "1.7.13" version = "1.7.14"
dependencies = [ dependencies = [
"axum", "axum",
"base64 0.22.0", "base64 0.22.0",

View File

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

View File

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