mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
Update src/plugins/betterBanReasons/index.tsx
Co-authored-by: vee <vendicated@riseup.net>
This commit is contained in:
parent
4e0887fc67
commit
5834fd5568
1 changed files with 1 additions and 5 deletions
|
@ -10,11 +10,7 @@ import definePlugin, { OptionType } from "@utils/types";
|
|||
import { Button, Forms, TextInput, useEffect, useState } from "@webpack/common";
|
||||
|
||||
function ReasonsComponent() {
|
||||
const [reasons, setReasons] = useState(settings.store.reasons as string[]);
|
||||
|
||||
useEffect(() => {
|
||||
settings.store.reasons = reasons;
|
||||
}, [reasons]);
|
||||
const { reasons } = settings.use(["reasons"]);
|
||||
|
||||
return (
|
||||
<Forms.FormSection title="Reasons">
|
||||
|
|
Loading…
Add table
Reference in a new issue