feat(@ui): migrate textarea and tip

This commit is contained in:
Paul Makles
2022-05-30 12:47:13 +01:00
parent b75fdb59cf
commit ebd3911783
14 changed files with 41 additions and 607 deletions

View File

@@ -3,12 +3,10 @@ import { observer } from "mobx-react-lite";
import styles from "./Panes.module.scss";
import { Text } from "preact-i18n";
import { Button, Checkbox } from "@revoltchat/ui";
import { Button, Checkbox, Tip } from "@revoltchat/ui";
import { useApplicationState } from "../../../mobx/State";
import Tip from "../../../components/ui/Tip";
// Just keeping this here for general purpose. Should probably be exported
// elsewhere, though.
interface Plugin {
@@ -69,7 +67,7 @@ export const PluginsPage = observer(() => {
const plugins = useApplicationState().plugins;
return (
<div className={styles.plugins}>
<Tip error hideSeparator>
<Tip palette="error">
<Text id="app.settings.pages.plugins.wip" />
</Tip>
{plugins.list().map((plugin) => {