Skip to content

Commit

Permalink
enable local storage to store clicked columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel-C-Johnson committed Oct 24, 2023
1 parent 356f0e4 commit e5d05c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/datatable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e5d05c5

Please sign in to comment.