Skip to content

Commit

Permalink
Governor page - default order DESC by Daily Limit (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
giulianoconti authored Dec 11, 2024
1 parent a8753f2 commit 2bc08f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/organisms/TokenActivity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ const TokenActivity = ({ isHomePage = false }: { isHomePage?: boolean }) => {
const [rowSelected, setRowSelected] = useState<number>(0);

const [filters, setFiltersState] = useState({
from: getISODateZeroed(1),
from: getISODateZeroed(7),
to: todayISOString,
timespan: "1h",
timespan: "1d",
sourceChain: [],
targetChain: [],
symbol: { label: "USDC", value: "USDC" },
Expand Down
10 changes: 5 additions & 5 deletions src/pages/Governor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ const Governor = () => {
const [dataTransactions, setDataTransactions] = useState([]);
const [openSortBy, setOpenSortBy] = useState(false);
const [selectedSortBy, setSelectedSortBy] = useState(
showTransactions ? SORT_TRANSACTIONS_BY_LIST[4] : SORT_DASHBOARD_BY_LIST[3],
showTransactions ? SORT_TRANSACTIONS_BY_LIST[4] : SORT_DASHBOARD_BY_LIST[2],
);
const [selectedSortLowHigh, setSelectedSortLowHigh] = useState(
showTransactions ? SORT_LOW_HIGH_LIST[0] : SORT_LOW_HIGH_LIST[0],
showTransactions ? SORT_LOW_HIGH_LIST[0] : SORT_LOW_HIGH_LIST[1],
);
const [sortBy, setSortBy] = useState<{ id: string; desc: boolean }[]>([
{ id: selectedSortBy.value, desc: selectedSortLowHigh.value },
Expand Down Expand Up @@ -330,9 +330,9 @@ const Governor = () => {
setSelectedSortLowHigh(SORT_LOW_HIGH_LIST[0]);
setSortBy([{ id: SORT_TRANSACTIONS_BY_LIST[4].value, desc: false }]);
} else {
setSelectedSortBy(SORT_DASHBOARD_BY_LIST[3]);
setSelectedSortLowHigh(SORT_LOW_HIGH_LIST[0]);
setSortBy([{ id: SORT_DASHBOARD_BY_LIST[3].value, desc: false }]);
setSelectedSortBy(SORT_DASHBOARD_BY_LIST[2]);
setSelectedSortLowHigh(SORT_LOW_HIGH_LIST[1]);
setSortBy([{ id: SORT_DASHBOARD_BY_LIST[2].value, desc: false }]);
}
setOpenSortBy(false);
};
Expand Down

0 comments on commit 2bc08f9

Please sign in to comment.