mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
web: only show spellchecker settings on desktop
This commit is contained in:
@@ -627,24 +627,28 @@ function Settings() {
|
|||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Toggle
|
{isDesktop() && (
|
||||||
title="Enable spellchecker"
|
<>
|
||||||
onToggled={() => spellChecker.toggle(!spellChecker.enabled)}
|
<Toggle
|
||||||
isToggled={spellChecker.enabled}
|
title="Enable spellchecker"
|
||||||
/>
|
onToggled={() => spellChecker.toggle(!spellChecker.enabled)}
|
||||||
{isDesktop() && getPlatform() !== "darwin" && (
|
isToggled={spellChecker.enabled}
|
||||||
<Button
|
|
||||||
variant="list"
|
|
||||||
onClick={async () => {
|
|
||||||
await showLanguageSelectorDialog();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Tip
|
|
||||||
text="Spellchecker languages"
|
|
||||||
tip="Choose languages for the spellchecker"
|
|
||||||
sx={{ py: 2 }}
|
|
||||||
/>
|
/>
|
||||||
</Button>
|
{getPlatform() !== "darwin" && (
|
||||||
|
<Button
|
||||||
|
variant="list"
|
||||||
|
onClick={async () => {
|
||||||
|
await showLanguageSelectorDialog();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Tip
|
||||||
|
text="Spellchecker languages"
|
||||||
|
tip="Choose languages for the spellchecker"
|
||||||
|
sx={{ py: 2 }}
|
||||||
|
/>
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user