From e5d05c56709c0022ec8c43a7613b90b649c8f550 Mon Sep 17 00:00:00 2001 From: Joel C Johnson Date: Tue, 24 Oct 2023 13:52:58 +0530 Subject: [PATCH 1/2] enable local storage to store clicked columns --- src/components/datatable/DataTable.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/datatable/DataTable.js b/src/components/datatable/DataTable.js index df064134..bf0d822e 100644 --- a/src/components/datatable/DataTable.js +++ b/src/components/datatable/DataTable.js @@ -189,6 +189,10 @@ function DataTable({ [columnsShow] ); + if(columnsShow){ + localStorage.setItem('StoredColumn', columnsShow); + } + // Scroll to bottom when navigating to previous page const scrollToBottom = (action) => { if (dataTableElement && dataTableElement.current) { From 024271a60005acb84ff21e1d74787fab6cf1b204 Mon Sep 17 00:00:00 2001 From: Joel C Johnson Date: Tue, 24 Oct 2023 13:54:55 +0530 Subject: [PATCH 2/2] v1.2.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 340f34c0..db627cbf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datatable-translatable", - "version": "1.2.2", + "version": "1.2.3", "license": "MIT", "description": "A Component Library for Translating DataTables using React and MaterialUI.", "homepage": "https://datatable-translatable.netlify.com/",