mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 07:02:10 -05:00
improvement(plugins-page) Use more i18 components
This commit is contained in:
parent
cdc077ffa1
commit
c3f4ad8f8d
1 changed files with 3 additions and 2 deletions
|
@ -88,10 +88,11 @@ function PluginCard({ plugin }: CardProps) {
|
|||
</div>
|
||||
<div className={styles.buttonRow}>
|
||||
<Button
|
||||
error
|
||||
onClick={() =>
|
||||
plugins.remove(plugin.namespace, plugin.id)
|
||||
}>
|
||||
<p>Delete</p>
|
||||
<Text id="app.settings.pages.plugins.delete_plugin" />
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -104,7 +105,7 @@ export const PluginsPage = observer(() => {
|
|||
return (
|
||||
<div className={styles.plugins}>
|
||||
<Tip error hideSeparator>
|
||||
Warning: This feature is still in development.
|
||||
<Text id="app.settings.pages.plugins.wip" />
|
||||
</Tip>
|
||||
{plugins.list().map((plugin) => {
|
||||
return <PluginCard key={plugin.id} plugin={plugin} />;
|
||||
|
|
Loading…
Reference in a new issue