Tweak system editing

This commit is contained in:
Spectralitree 2020-12-12 21:04:10 +01:00
parent 806c7857f5
commit 759c14c6db
4 changed files with 9 additions and 8 deletions

View file

@ -4,6 +4,7 @@ import { useForm } from "react-hook-form";
import moment from 'moment';
import Popup from 'reactjs-popup';
import 'reactjs-popup/dist/index.css';
import autosize from 'autosize';
import API_URL from "../Constants/constants.js";
@ -57,6 +58,10 @@ export default function MemberCard(props) {
handleSubmit: handleSubmitProxy,
} = useForm();
useEffect(() => {
autosize(document.querySelector('textarea'));
})
useEffect(() => {
const { toHTML } = require('../Functions/discord-parser.js');