aboutsummaryrefslogtreecommitdiffstats
path: root/packages/renderer/src/components/ServiceSwitcher.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-01-23 17:12:47 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-02-08 21:43:17 +0100
commit044b2de8c7861504704468ba441d4a6a37eed8f7 (patch)
tree940d2b7946d07a0c69b5e3ad46c25c599cf2aca7 /packages/renderer/src/components/ServiceSwitcher.tsx
parentfeat: Add selected service field to SharedStore (diff)
downloadsophie-044b2de8c7861504704468ba441d4a6a37eed8f7.tar.gz
sophie-044b2de8c7861504704468ba441d4a6a37eed8f7.tar.zst
sophie-044b2de8c7861504704468ba441d4a6a37eed8f7.zip
refactor: Move runtime state into shared models
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 <kristof@marussy.com>
Diffstat (limited to 'packages/renderer/src/components/ServiceSwitcher.tsx')
-rw-r--r--packages/renderer/src/components/ServiceSwitcher.tsx4
1 files changed, 2 insertions, 2 deletions
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(() => {
78 <ServiceSwitcherTab 78 <ServiceSwitcherTab
79 key={service.id} 79 key={service.id}
80 value={service.id} 80 value={service.id}
81 icon={<ServiceIcon name={service.name} />} 81 icon={<ServiceIcon name={service.settings.name} />}
82 aria-label={service.name} 82 aria-label={service.settings.name}
83 /> 83 />
84 ))} 84 ))}
85 </ServiceSwitcherRoot> 85 </ServiceSwitcherRoot>