Refactor backup subscription UI

This commit is contained in:
trevor-signal
2025-10-15 11:05:59 -04:00
committed by GitHub
parent dbaf2f5e68
commit 6ec7272d4e
14 changed files with 481 additions and 320 deletions

View File

@@ -232,8 +232,11 @@ export function isEnabled(
return get(reduxConfig ?? config, [name, 'enabled'], false);
}
export function getValue(name: ConfigKeyType): string | undefined {
return get(config, [name, 'value']);
export function getValue(
name: ConfigKeyType, // when called from UI component, provide redux config (items.remoteConfig)
reduxConfig?: ConfigMapType
): string | undefined {
return get(reduxConfig ?? config, [name, 'value']);
}
// See isRemoteConfigBucketEnabled in selectors/items.ts