From b1fa372a38849255d7f07aef5f1e6ab4573ffbf5 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Fri, 15 Apr 2022 01:33:03 +0500 Subject: [PATCH] fix --- package.json | 2 +- src/App.tsx | 2 +- src/components/vp-explorer/CompoundDisplay.tsx | 4 ++-- src/components/vp-explorer/VPExplorer.tsx | 2 +- src/components/vp-explorer/VerbPicker.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index d12c950..2338bae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "2.0.7", + "version": "2.0.8", "author": "lingdocs.com", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "homepage": "https://verbs.lingdocs.com", diff --git a/src/App.tsx b/src/App.tsx index 5eb6bd2..edd6ff9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -259,7 +259,7 @@ function App() { {v?.verb.entry &&
void) | 0, + handleLinkClick: ((ts: number) => void) | "none", }) { const isComplement = ("complement" in info || "objComplement" in info); if (!isComplement) { @@ -83,7 +83,7 @@ function CompoundDisplay({ info, opts, handleLinkClick }: {
} b={
handleLinkClick(info.entry.entry.ts) : undefined}>
diff --git a/src/components/vp-explorer/VPExplorer.tsx b/src/components/vp-explorer/VPExplorer.tsx index a683859..7e2ce9a 100644 --- a/src/components/vp-explorer/VPExplorer.tsx +++ b/src/components/vp-explorer/VPExplorer.tsx @@ -39,7 +39,7 @@ const servantIcon = ; export function VPExplorer(props: { verb: T.VerbEntry, opts: T.TextOptions, - handleLinkClick: ((ts: number) => undefined) | 0, + handleLinkClick: ((ts: number) => void) | "none", } & ({ nouns: T.NounEntry[], verbs: T.VerbEntry[], diff --git a/src/components/vp-explorer/VerbPicker.tsx b/src/components/vp-explorer/VerbPicker.tsx index 6301799..9ad736c 100644 --- a/src/components/vp-explorer/VerbPicker.tsx +++ b/src/components/vp-explorer/VerbPicker.tsx @@ -12,7 +12,7 @@ function VerbPicker(props: { vps: T.VPSelection, onChange: (p: T.VPSelection) => void, opts: T.TextOptions, - handleLinkClick: ((ts: number) => void) | 0, + handleLinkClick: ((ts: number) => void) | "none", }) { const [showRootsAndStems, setShowRootsAndStems] = useStickyState(false, "showRootsAndStems"); const infoRaw = props.vps.verb ? getVerbInfo(props.vps.verb.verb.entry, props.vps.verb.verb.complement) : undefined;