Simplified inlining and cleaning up unused translations

This commit is contained in:
Marco Rodolfi
2023-05-26 14:08:09 +02:00
parent dfdad14ede
commit 3a83062438
+4 -4
View File
@@ -255,7 +255,6 @@ class PluginLoader extends Logger {
version: version, version: version,
}); });
} catch (e) { } catch (e) {
//this.error(t('PluginLoader.plugin_load_error.message', { name: name }), e);
this.error('Error loading plugin ' + name, e); this.error('Error loading plugin ' + name, e);
const TheError: FC<{}> = () => ( const TheError: FC<{}> = () => (
<Translation> <Translation>
@@ -266,11 +265,12 @@ class PluginLoader extends Logger {
<pre> <pre>
<code>{e instanceof Error ? e.stack : JSON.stringify(e)}</code> <code>{e instanceof Error ? e.stack : JSON.stringify(e)}</code>
</pre> </pre>
<IconContext.Provider value={{ style: { verticalAlign: 'middle' } }}>
<div> <div>
<Trans i18nKey="PluginLoader.plugin_error_uninstall" components={[<FaCog />]} /> <Trans
i18nKey="PluginLoader.plugin_error_uninstall"
components={[<FaCog style={{ verticalAlign: 'middle' }} />]}
/>
</div> </div>
</IconContext.Provider>
</> </>
); );
}} }}