This commit is contained in:
lingdocs 2022-06-11 12:54:06 -04:00
parent 46088c706f
commit b1728000d3
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/pashto-inflector", "name": "@lingdocs/pashto-inflector",
"version": "2.8.5", "version": "2.8.6",
"author": "lingdocs.com", "author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com", "homepage": "https://verbs.lingdocs.com",

View File

@ -11,7 +11,7 @@ type Mode = "text" | "blocks";
function EPDisplay({ eps, opts, setOmitSubject }: { function EPDisplay({ eps, opts, setOmitSubject }: {
eps: T.EPSelectionState, eps: T.EPSelectionState,
opts: T.TextOptions, opts: T.TextOptions,
setOmitSubject: (value: "true" | "false") => void, setOmitSubject: ((value: "true" | "false") => void) | false
}) { }) {
const [mode, setMode] = useState<Mode>("text"); const [mode, setMode] = useState<Mode>("text");
const EP = completeEPSelection(eps); const EP = completeEPSelection(eps);
@ -35,7 +35,7 @@ function EPDisplay({ eps, opts, setOmitSubject }: {
return <div className="text-center pt-3"> return <div className="text-center pt-3">
<div className="mb-2 d-flex flex-row justify-content-between align-items-center"> <div className="mb-2 d-flex flex-row justify-content-between align-items-center">
<ModeSelect value={mode} onChange={setMode} /> <ModeSelect value={mode} onChange={setMode} />
<ButtonSelect {setOmitSubject !== false ? <ButtonSelect
small small
value={(eps.omitSubject ? "true" : "false") as "true" | "false"} value={(eps.omitSubject ? "true" : "false") as "true" | "false"}
options={[ options={[
@ -43,7 +43,7 @@ function EPDisplay({ eps, opts, setOmitSubject }: {
{ value: "true", label: "No Subj."}, { value: "true", label: "No Subj."},
]} ]}
handleChange={setOmitSubject} handleChange={setOmitSubject}
/> /> : <div />}
<div /> <div />
</div> </div>
{mode === "text" {mode === "text"