From 32631de371212bd9d61ae6970f020f19c4d0245d Mon Sep 17 00:00:00 2001 From: adueck Date: Mon, 24 Oct 2022 13:26:40 +0500 Subject: [PATCH] fixed options --- src/demo-components/SpellingDemo.tsx | 53 +++++++++++++++++++++------- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/src/demo-components/SpellingDemo.tsx b/src/demo-components/SpellingDemo.tsx index 9b79980..5625928 100644 --- a/src/demo-components/SpellingDemo.tsx +++ b/src/demo-components/SpellingDemo.tsx @@ -1,5 +1,4 @@ import Examples from "../components/src/Examples"; -import ButtonSelect from "../components/src/ButtonSelect"; import * as T from "../types"; const spellingOptions: { @@ -58,7 +57,7 @@ function SpellingDemo({ opts, onChange }: { { @@ -83,7 +82,7 @@ function SpellingDemo({ opts, onChange }: { { @@ -100,16 +99,44 @@ function SpellingDemo({ opts, onChange }: { ))} -
-
Diacritics
- onChange({ ...opts, diacritics: p === "true" })} - /> +
+
Diacritics Engine:
+
+
+ { + onChange({ + ...opts, + diacritics: true, + }); + }} + /> + +
+
+ { + onChange({ + ...opts, + diacritics: false, + }); + }} + /> + +
+