mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: hide spell checker language selector on mac os
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -31,6 +31,7 @@ import { SpellCheckerLanguages } from "./components/spell-checker-languages";
|
||||
import { CustomizeToolbar } from "./components/customize-toolbar";
|
||||
import { DictionaryWords } from "./components/dictionary-words";
|
||||
import { strings } from "@notesnook/intl";
|
||||
import { isMac } from "../../utils/platform";
|
||||
|
||||
export const EditorSettings: SettingsGroup[] = [
|
||||
{
|
||||
@@ -164,7 +165,7 @@ export const EditorSettings: SettingsGroup[] = [
|
||||
key: "spell-checker-languages",
|
||||
title: strings.languages(),
|
||||
description: strings.spellCheckerLanguagesDescription(),
|
||||
isHidden: () => !useSpellChecker.getState().enabled,
|
||||
isHidden: () => !useSpellChecker.getState().enabled || isMac(),
|
||||
onStateChange: (listener) =>
|
||||
useSpellChecker.subscribe((c) => c.enabled, listener),
|
||||
components: [
|
||||
|
||||
Reference in New Issue
Block a user