@@ -38,10 +38,10 @@ const getSecondaryText = (
|
||||
return flag.description;
|
||||
}
|
||||
return flag.pluginId
|
||||
? t('featureFlags.flagItem.subTitle.registeredInPlugin', {
|
||||
? t('featureFlags.flagItem.subtitle.registeredInPlugin', {
|
||||
pluginId: flag.pluginId,
|
||||
})
|
||||
: t('featureFlags.flagItem.subTitle.registeredInApplication');
|
||||
: t('featureFlags.flagItem.subtitle.registeredInApplication');
|
||||
};
|
||||
|
||||
export const FlagItem = ({ flag, enabled, toggleHandler }: Props) => {
|
||||
|
||||
@@ -26,5 +26,5 @@ export const Settings = (props: { icon?: IconComponent }) => {
|
||||
const routePath = useRouteRef(settingsRouteRef);
|
||||
const Icon = props.icon ? props.icon : SettingsIcon;
|
||||
const { t } = useTranslationRef(userSettingsTranslationRef);
|
||||
return <SidebarItem text={t('sideBarTitle')} to={routePath()} icon={Icon} />;
|
||||
return <SidebarItem text={t('sidebarTitle')} to={routePath()} icon={Icon} />;
|
||||
};
|
||||
|
||||
@@ -109,7 +109,7 @@ export const userSettingsTranslationRef = createTranslationRef({
|
||||
disable: 'Disable',
|
||||
enable: 'Enable',
|
||||
},
|
||||
subTitle: {
|
||||
subtitle: {
|
||||
registeredInApplication: 'Registered in the application',
|
||||
registeredInPlugin: 'Registered in {{pluginId}} plugin',
|
||||
},
|
||||
@@ -118,6 +118,6 @@ export const userSettingsTranslationRef = createTranslationRef({
|
||||
settingsLayout: {
|
||||
title: 'Settings',
|
||||
},
|
||||
sideBarTitle: 'Settings',
|
||||
sidebarTitle: 'Settings',
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user