fix: lint and code error with modal template

This commit is contained in:
byeoon 2024-06-10 13:48:41 -04:00 committed by GitHub
parent 2721cd3d47
commit fc3618628f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,18 +5,19 @@
*/ */
import { ApplicationCommandInputType, ApplicationCommandOptionType, findOption, sendBotMessage } from "@api/Commands"; import { ApplicationCommandInputType, ApplicationCommandOptionType, findOption, sendBotMessage } from "@api/Commands";
import { ModalRoot, ModalSize } from "@utils/modal";
import { Devs } from "@utils/constants"; import { Devs } from "@utils/constants";
import { ModalRoot, ModalSize } from "@utils/modal";
import definePlugin, { PluginNative } from "@utils/types"; import definePlugin, { PluginNative } from "@utils/types";
const Native = VencordNative.pluginHelpers.WebhookManager as PluginNative<typeof import("./native")>; const Native = VencordNative.pluginHelpers.WebhookManager as PluginNative<typeof import("./native")>;
// TODO: Create Modal // TODO: Create Modal and add stuff
function webhookMessageModal(props: ModalProps) { function webhookMessageModal(props: ModalProps) {
return ( return (
<ModalRoot> <ModalRoot {...props} size={ModalSize.MEDIUM}>
{...props} <ModalContent className="wm-send-webhook">
size={ModalSize.MEDIUM}
</ModalContent>
</ModalRoot> </ModalRoot>
); );
} }