From 4ffe9dbc58f595e238a41d2c45737ad9c9233c7c Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Sun, 30 Jun 2024 13:07:36 +0300 Subject: [PATCH 1/2] chore: bump @interslavic/utils --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 07b97cea..f011864d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@ag-grid-community/client-side-row-model": "25.2.0", "@ag-grid-community/core": "25.2.0", - "@interslavic/utils": "^3.1.0", + "@interslavic/utils": "^3.1.8", "classnames": "2.3.2", "lodash": "4.17.21", "md5": "2.3.0", @@ -2405,9 +2405,9 @@ "dev": true }, "node_modules/@interslavic/utils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@interslavic/utils/-/utils-3.1.0.tgz", - "integrity": "sha512-qeYHUMAvhfWuXs1yz8nXPEDJDQ0niYD0IU3pTx6eUHUCei9nZMv7lFYFwaJtoVDtqP4vrrXQncTT5QV8aiWZqg==", + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/@interslavic/utils/-/utils-3.1.8.tgz", + "integrity": "sha512-02K7YuA7Yrcadu6eHd+ZcFBp2h7w4fTzUxVO/M8wrkBht5F7BM2BmeF33RLeuyVO5mQbO0QuaD7TD+k+mET6rg==", "dependencies": { "jest-allure2-reporter": "^2.0.0-beta.14", "tslib": "^2.2.0" diff --git a/package.json b/package.json index c3e46369..1350e4ee 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "dependencies": { "@ag-grid-community/client-side-row-model": "25.2.0", "@ag-grid-community/core": "25.2.0", - "@interslavic/utils": "^3.1.0", + "@interslavic/utils": "^3.1.8", "classnames": "2.3.2", "lodash": "4.17.21", "md5": "2.3.0", From b747b043fde990b44f17aca5222199a811f0e284 Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Sun, 30 Jun 2024 13:33:41 +0300 Subject: [PATCH 2/2] fix(verb): derive participles based on verb type --- src/components/Modals/DetailModal/DetailModal.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Modals/DetailModal/DetailModal.tsx b/src/components/Modals/DetailModal/DetailModal.tsx index 0312e05b..0f419049 100644 --- a/src/components/Modals/DetailModal/DetailModal.tsx +++ b/src/components/Modals/DetailModal/DetailModal.tsx @@ -203,7 +203,7 @@ class DetailModalInternal extends Component { wordComponent = this.renderAdjectiveDetails(word, details); break; case 'verb': - wordComponent = this.renderVerbDetails(word, add); + wordComponent = this.renderVerbDetails(word, add, details); break; case 'numeral': wordComponent = this.renderNumeralDetails(word, details); @@ -242,8 +242,8 @@ class DetailModalInternal extends Component { } } - private renderVerbDetails(word, add) { - const data = conjugationVerb(word, add); + private renderVerbDetails(word, add, details) { + const data = conjugationVerb(word, add, details); if (data === null) { return (