Skip to content

Commit

Permalink
Merge pull request #12 from oenu:oenu/issue36
Browse files Browse the repository at this point in the history
Oenu/issue36
  • Loading branch information
oenu committed Oct 1, 2022
2 parents 1dbeb64 + 05251ca commit 9f14bc6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions stagewhisper/app/src/features/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react';

// Redux
import { useAppDispatch, useAppSelector } from '../../redux/hooks';
import { selectDisplayLanguage, selectTheme, setDisplayLanguage } from './settingsSlice';
import { selectDisplayLanguage, selectTheme, setAllowLargeModel, setDisplayLanguage } from './settingsSlice';

// Localization
import strings from '../../localization';
Expand Down Expand Up @@ -67,10 +67,9 @@ function Settings() {
<Switch
onLabel={strings.util?.on}
offLabel={strings.util?.off}
onChange={(value) => {
if (value) {
dispatch(setDisplayLanguage(value));
}
onChange={(event) => {
console.log(event.target.checked);
dispatch(setAllowLargeModel(event.target.checked));
}}
/>
</Group>
Expand Down

0 comments on commit 9f14bc6

Please sign in to comment.