diff --git a/src/components/equative-explorer/explorer-selectors.tsx b/src/components/equative-explorer/explorer-selectors.tsx index c93f625..6af6cfd 100644 --- a/src/components/equative-explorer/explorer-selectors.tsx +++ b/src/components/equative-explorer/explorer-selectors.tsx @@ -10,7 +10,7 @@ import { ButtonSelect, Types as T, } from "@lingdocs/pashto-inflector"; -import { isPluralEntry } from "../../lib/type-predicates"; +import { isFemNoun, isMascNoun, isPluralEntry } from "../../lib/type-predicates"; import Select from "react-select"; const zIndexProps = { @@ -111,29 +111,33 @@ export function SubjectSelector({ state, dispatch }: { placeholder={options.find(o => o.value === subject?.ts.toString())?.label} {...zIndexProps} /> -
- {state.subjectType !== "participle" &&
- dispatch({ type: "setSubjectPlural", payload: p === "plural" ? true : false })} - /> -
} - {state.subjectType === "unisexNoun" &&
- dispatch({ type: "setSubjectGender", payload: p as T.Gender })} - /> -
} +
+ {state.subjectType !== "participle" && <> +
+ null : (p) => dispatch({ type: "setSubjectGender", payload: p as T.Gender })} + /> +
+
+ dispatch({ type: "setSubjectPlural", payload: p === "plural" ? true : false })} + /> +
+ }
}