summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components/cell
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-12-06 15:43:15 +0100
committerOskar Nyberg <oskar@mullvad.net>2021-12-07 09:00:32 +0100
commit2b986b0ec24acdc5b90e0f09f7dcc68876e5a2f1 (patch)
tree1cfa139c55620651fe2af23979a885957c4b9688 /gui/src/renderer/components/cell
parentafb8383f6fcc24ff9632e9b494ba1ba0587b4306 (diff)
downloadmullvadvpn-2b986b0ec24acdc5b90e0f09f7dcc68876e5a2f1.tar.xz
mullvadvpn-2b986b0ec24acdc5b90e0f09f7dcc68876e5a2f1.zip
Add possibility to change switch value
Diffstat (limited to 'gui/src/renderer/components/cell')
-rw-r--r--gui/src/renderer/components/cell/Input.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/renderer/components/cell/Input.tsx b/gui/src/renderer/components/cell/Input.tsx
index 1dd240b3ce..c57d552866 100644
--- a/gui/src/renderer/components/cell/Input.tsx
+++ b/gui/src/renderer/components/cell/Input.tsx
@@ -8,10 +8,10 @@ import ImageView from '../ImageView';
export const Switch = React.forwardRef(function SwitchT(
props: StandaloneSwitch['props'],
- ref: React.Ref<HTMLDivElement>,
+ ref: React.Ref<StandaloneSwitch>,
) {
const disabled = useContext(CellDisabledContext);
- return <StandaloneSwitch forwardedRef={ref} disabled={disabled} {...props} />;
+ return <StandaloneSwitch ref={ref} disabled={disabled} {...props} />;
});
export const InputFrame = styled.div({