Add mentioning for channels
This commit is contained in:
@ -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 (
|
||||
<div class="embed-footer-box">
|
||||
@ -31,6 +32,7 @@ export const Footer = ({ footer, icon, setReminder }: Props) => {
|
||||
<label class="is-sr-only" for="embedFooter">
|
||||
Embed Footer text
|
||||
</label>
|
||||
{guild && <Mentions input={input} />}
|
||||
<textarea
|
||||
class="discord-embed-footer message-input autoresize "
|
||||
placeholder="Embed Footer..."
|
||||
|
Reference in New Issue
Block a user