TextAreaAutoSize test

This commit is contained in:
Paul
2021-06-21 14:20:29 +01:00
parent 3c6e3b9fbf
commit d965b20ee2
3 changed files with 113 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
import styles from "./Panes.module.scss";
import Button from "../../../components/ui/Button";
import { Users } from "revolt.js/dist/api/objects";
import TextArea from "../../../components/ui/TextArea";
import { IntlContext, Text, translate } from "preact-i18n";
import TextAreaAutoSize from "../../../lib/TextAreaAutoSize";
import { useContext, useEffect, useState } from "preact/hooks";
import { FileUploader } from "../../../context/revoltjs/FileUploads";
import { useForceUpdate, useSelf } from "../../../context/revoltjs/hooks";
@@ -93,9 +93,9 @@ export function Profile() {
<h3>
<Text id="app.settings.pages.profile.info" />
</h3>
<TextArea
// maxRows={10}
// minHeight={200}
<TextAreaAutoSize
maxRows={10}
minHeight={200}
maxLength={2000}
value={profile?.content ?? ""}
disabled={typeof profile === "undefined"}