feat(PatchHelper): Paste Full Patch (#1982)

This commit is contained in:
MrDiamondDog 2024-03-21 17:59:25 -06:00 committed by GitHub
parent 2ce3487477
commit 5646fe402a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 68 additions and 3 deletions

View file

@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { React, TextInput } from "@webpack/common";
import { React, TextInput, useEffect } from "@webpack/common";
// TODO: Refactor settings to use this as well
interface TextInputProps {
@ -55,6 +55,10 @@ export function CheckedTextInput({ value: initialValue, onChange, validate }: Te
}
}
useEffect(() => {
handleChange(initialValue);
}, [initialValue]);
return (
<>
<TextInput