mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(ui): more renaming of components
This commit is contained in:
committed by
Kent Keirsey
parent
b3dbfdaa02
commit
ba6db33b39
@ -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;
|
||||
};
|
Reference in New Issue
Block a user