Skip to content

Commit

Permalink
Fix: Sort tables descending by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyphilemon committed May 3, 2020
1 parent 8f32eb9 commit 54ae761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/row.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function Row({
const [showDistricts, setShowDistricts] = useState(false);
const [sortData, setSortData] = useLocalStorage('districtSortData', {
sortColumn: 'confirmed',
isAscending: true,
isAscending: false,
});

const history = useHistory();
Expand Down
2 changes: 1 addition & 1 deletion src/components/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function Table({
}) {
const [sortData, setSortData] = useLocalStorage('sortData', {
sortColumn: 'confirmed',
isAscending: true,
isAscending: false,
});

const [sortedStates, setSortedStates] = useState(
Expand Down

0 comments on commit 54ae761

Please sign in to comment.