improvement(plugins-page) Use more i18 components

This commit is contained in:
Alyxia Sother 2022-03-29 17:39:07 +02:00 committed by Paul Makles
parent cdc077ffa1
commit c3f4ad8f8d

View file

@ -88,10 +88,11 @@ function PluginCard({ plugin }: CardProps) {
</div> </div>
<div className={styles.buttonRow}> <div className={styles.buttonRow}>
<Button <Button
error
onClick={() => onClick={() =>
plugins.remove(plugin.namespace, plugin.id) plugins.remove(plugin.namespace, plugin.id)
}> }>
<p>Delete</p> <Text id="app.settings.pages.plugins.delete_plugin" />
</Button> </Button>
</div> </div>
</div> </div>
@ -104,7 +105,7 @@ export const PluginsPage = observer(() => {
return ( return (
<div className={styles.plugins}> <div className={styles.plugins}>
<Tip error hideSeparator> <Tip error hideSeparator>
Warning: This feature is still in development. <Text id="app.settings.pages.plugins.wip" />
</Tip> </Tip>
{plugins.list().map((plugin) => { {plugins.list().map((plugin) => {
return <PluginCard key={plugin.id} plugin={plugin} />; return <PluginCard key={plugin.id} plugin={plugin} />;