From 044b2de8c7861504704468ba441d4a6a37eed8f7 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 23 Jan 2022 17:12:47 +0100 Subject: refactor: Move runtime state into shared models MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now the runtime state lives inside the model (instead of being associated to the static settings via a map), which simplifies state management. Static settings are now located inside the runtime models, so we must create tests to make sure that the settings are being persisted correctly. The contents of the config file are now generated as a view of store (instead of a snapshot), which adds flexibility. Signed-off-by: Kristóf Marussy --- packages/renderer/src/components/ServiceSwitcher.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/renderer/src/components/ServiceSwitcher.tsx') diff --git a/packages/renderer/src/components/ServiceSwitcher.tsx b/packages/renderer/src/components/ServiceSwitcher.tsx index 0786b71..167153f 100644 --- a/packages/renderer/src/components/ServiceSwitcher.tsx +++ b/packages/renderer/src/components/ServiceSwitcher.tsx @@ -78,8 +78,8 @@ export default observer(() => { } - aria-label={service.name} + icon={} + aria-label={service.settings.name} /> ))} -- cgit v1.2.3-70-g09d2