feat(@ui): migrate input box

This commit is contained in:
Paul Makles
2022-05-30 12:26:16 +01:00
parent a27a3da90f
commit d5b29db159
13 changed files with 66 additions and 105 deletions

View File

@@ -5,14 +5,12 @@ import styled from "styled-components/macro";
import { Text } from "preact-i18n";
import { useEffect, useState } from "preact/hooks";
import { Button, Checkbox } from "@revoltchat/ui";
import { Button, Checkbox, InputBox } from "@revoltchat/ui";
import TextAreaAutoSize from "../../../lib/TextAreaAutoSize";
import { FileUploader } from "../../../context/revoltjs/FileUploads";
import InputBox from "../../../components/ui/InputBox";
interface Props {
channel: Channel;
}
@@ -85,7 +83,7 @@ export default observer(({ channel }: Props) => {
)}
</h3>
<InputBox
contrast
palette="secondary"
value={name}
maxLength={32}
onChange={(e) => {