Skip to content

Commit

Permalink
fix: "Tools" preferences' toggles not showing correct initial state (#…
Browse files Browse the repository at this point in the history
…689)

* fix: Tools toggles not showing correct initial state

* Update app/assets/javascripts/preferences/panes/general-segments/Tools.tsx

Co-authored-by: Mough <mo@standardnotes.org>
  • Loading branch information
amanharwara and Mough authored Oct 16, 2021
1 parent 3953713 commit 474f1e6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ type Props = {
export const Tools: FunctionalComponent<Props> = observer(
({ application }: Props) => {
const [monospaceFont, setMonospaceFont] = useState(() =>
application.getPreference(PrefKey.EditorMonospaceEnabled)
application.getPreference(PrefKey.EditorMonospaceEnabled, true)
);
const [marginResizers, setMarginResizers] = useState(() =>
application.getPreference(PrefKey.EditorResizersEnabled)
application.getPreference(PrefKey.EditorResizersEnabled, true)
);
const [spellcheck, setSpellcheck] = useState(() =>
application.getPreference(PrefKey.EditorSpellcheck)
application.getPreference(PrefKey.EditorSpellcheck, true)
);

const toggleMonospaceFont = () => {
Expand Down

0 comments on commit 474f1e6

Please sign in to comment.