diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-12-06 15:43:15 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-12-07 09:00:32 +0100 |
| commit | 2b986b0ec24acdc5b90e0f09f7dcc68876e5a2f1 (patch) | |
| tree | 1cfa139c55620651fe2af23979a885957c4b9688 /gui/src/renderer/components/cell | |
| parent | afb8383f6fcc24ff9632e9b494ba1ba0587b4306 (diff) | |
| download | mullvadvpn-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.tsx | 4 |
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({ |
