@@ -32,6 +33,7 @@ export const Author = ({ name, icon, setReminder }: Props) => {
+ {guild &&
}
diff --git a/reminder-dashboard/src/components/Reminder/Embed/Description.tsx b/reminder-dashboard/src/components/Reminder/Embed/Description.tsx
index e9a571f..54cfdfd 100644
--- a/reminder-dashboard/src/components/Reminder/Embed/Description.tsx
+++ b/reminder-dashboard/src/components/Reminder/Embed/Description.tsx
@@ -1,12 +1,14 @@
-import { useMentions } from "../../App/useMentions";
+import { Mentions } from "../../App/Mentions";
import { useRef } from "preact/hooks";
+import { useGuild } from "../../App/useGuild";
export const Description = ({ description, onInput }) => {
+ const guild = useGuild();
const input = useRef(null);
- useMentions(input);
return (
<>
+ {guild &&
}
diff --git a/reminder-dashboard/src/components/Reminder/Embed/Fields/Field.tsx b/reminder-dashboard/src/components/Reminder/Embed/Fields/Field.tsx
index d80d788..48fbf42 100644
--- a/reminder-dashboard/src/components/Reminder/Embed/Fields/Field.tsx
+++ b/reminder-dashboard/src/components/Reminder/Embed/Fields/Field.tsx
@@ -1,9 +1,10 @@
import { useRef } from "preact/hooks";
-import { useMentions } from "../../../App/useMentions";
+import { Mentions } from "../../../App/Mentions";
+import { useGuild } from "../../../App/useGuild";
export const Field = ({ title, value, inline, index, onUpdate }) => {
+ const guild = useGuild();
const input = useRef(null);
- useMentions(input);
return (
@@ -41,6 +42,7 @@ export const Field = ({ title, value, inline, index, onUpdate }) => {
)}
+ {guild &&
}
diff --git a/reminder-dashboard/src/components/Reminder/Embed/Footer.tsx b/reminder-dashboard/src/components/Reminder/Embed/Footer.tsx
index 2fc634d..f091fbb 100644
--- a/reminder-dashboard/src/components/Reminder/Embed/Footer.tsx
+++ b/reminder-dashboard/src/components/Reminder/Embed/Footer.tsx
@@ -1,7 +1,8 @@
import { Reminder } from "../../../api";
import { ImagePicker } from "../ImagePicker";
-import { useMentions } from "../../App/useMentions";
+import { Mentions } from "../../App/Mentions";
import { useRef } from "preact/hooks";
+import { useGuild } from "../../App/useGuild";
type Props = {
footer: string;
@@ -10,8 +11,8 @@ type Props = {
};
export const Footer = ({ footer, icon, setReminder }: Props) => {
+ const guild = useGuild();
const input = useRef(null);
- useMentions(input);
return (