Skip to content

Commit

Permalink
disable switch if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius committed Feb 26, 2024
1 parent e170621 commit 125e7d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/expo/src/app/settings/language/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export default function LanguageSettings() {
action: (
<Switch
value={translationService === "DEEPL"}
disabled={!isPro}
onValueChange={(useDeepL) => {
setAppPreferences({
translationMethod: useDeepL ? "DEEPL" : "GOOGLE",
Expand Down
1 change: 1 addition & 0 deletions apps/expo/src/app/settings/pro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function ProSettings() {
action: (
<Switch
value={translationMethod === "DEEPL"}
disabled={!isPro}
onValueChange={(useDeepL) => {
setAppPreferences({
translationMethod: useDeepL ? "DEEPL" : "GOOGLE",
Expand Down

0 comments on commit 125e7d6

Please sign in to comment.