From 8d7b845ca30dd2221c5d2939b97d629601843e3e Mon Sep 17 00:00:00 2001 From: Eduard Carrerars Date: Sun, 16 Jul 2023 23:02:39 +0200 Subject: [PATCH 1/2] Fix background color badge row selected --- src/components/Rows.tsx | 1 + src/stories/Table.stories.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Rows.tsx b/src/components/Rows.tsx index 3e52629..39a5fc3 100644 --- a/src/components/Rows.tsx +++ b/src/components/Rows.tsx @@ -163,6 +163,7 @@ function getRowComponent({ getExpandableStatusForRow={getExpandableStatusForRow} onExpandableIconClicked={onExpandableIconClicked} level={level} + rowIsSelected={rowIsSelected} /> } diff --git a/src/stories/Table.stories.tsx b/src/stories/Table.stories.tsx index 7066772..ad0f7d5 100644 --- a/src/stories/Table.stories.tsx +++ b/src/stories/Table.stories.tsx @@ -264,7 +264,7 @@ export const Status: ComponentStoryObj = { alert("double clicked record" + JSON.stringify(record)); }, sorter: { id: "name", desc: true }, - readonly: true, + readonly: false, onChangeSort: (sorter: Sorter | undefined) => { console.log("onChangeSort: ", sorter); }, From df8edd82a261d0adbe8f4db261cff32c67bc9277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Gu=CC=88ell=20Segarra?= Date: Mon, 17 Jul 2023 09:40:34 +0200 Subject: [PATCH 2/2] Bump version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index abe0d75..473911d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gisce/react-formiga-table", - "version": "0.8.0", + "version": "0.8.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@gisce/react-formiga-table", - "version": "0.8.0", + "version": "0.8.1", "dependencies": { "react": "^16.8.0 || 17.x", "react-dom": "^16.8.0 || 17.x", diff --git a/package.json b/package.json index 53e54ea..7e47479 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gisce/react-formiga-table", - "version": "0.8.0", + "version": "0.8.1", "scripts": { "build": "tsc && vite build", "prepublishOnly": "npm run build",