Apply review feedback

This commit is contained in:
viown
2025-06-27 01:54:09 +03:00
parent 92cdfcc1ea
commit 2b9b5530f3
3 changed files with 15 additions and 3 deletions
@@ -47,7 +47,7 @@ const PluginCard = ({ plugin, configurationPage }: IProps) => {
const navigateToPluginSettings = useCallback(() => {
navigate(pluginPage);
}, [ navigate, location, configurationPage ]);
}, [ navigate, pluginPage ]);
const onEnablePlugin = useCallback(() => {
if (plugin.Id && plugin.Version) {
@@ -1,5 +1,5 @@
/** A mapping of category names used by the plugin repository to translation keys. */
export const CATEGORY_LABELS = {
export const CATEGORY_LABELS: Record<string, string> = {
Administration: 'HeaderAdmin',
Anime: 'Anime',
Authentication: 'LabelAuthProvider', // Legacy