tidy(ui): more renaming of components

This commit is contained in:
psychedelicious
2024-04-30 13:45:31 +10:00
committed by Kent Keirsey
parent b3dbfdaa02
commit ba6db33b39
12 changed files with 22 additions and 22 deletions

View File

@ -20,12 +20,12 @@ const selectValidLayerCount = createSelector(selectControlLayersSlice, (controlL
return validLayers.length;
});
export const useRegionalControlTitle = () => {
export const useControlLayersTitle = () => {
const { t } = useTranslation();
const validLayerCount = useAppSelector(selectValidLayerCount);
const title = useMemo(() => {
const suffix = validLayerCount > 0 ? ` (${validLayerCount})` : '';
return `${t('controlLayers.regionalControl')}${suffix}`;
return `${t('controlLayers.controlLayers')}${suffix}`;
}, [t, validLayerCount]);
return title;
};