Skip to content

Commit

Permalink
chore: default 30 days in home extra stats
Browse files Browse the repository at this point in the history
  • Loading branch information
kemuru committed Dec 11, 2024
1 parent 0ae2e08 commit 56627ab
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions web/src/pages/Home/CourtOverview/ExtraStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,12 @@ const stats: IStat[] = [
const timeRanges = [
{ value: 7, text: "Last 7 days" },
{ value: 30, text: "Last 30 days" },
{ value: 90, text: "Last 90 days" },
// we can uncomment these as the contract deployment time increases
// { value: 180, text: "Last 180 days" },
// { value: 365, text: "Last 365 days" },
{ value: 180, text: "Last 180 days" },
{ value: "allTime", text: "All Time" },
];

const ExtraStats = () => {
const [selectedRange, setSelectedRange] = useState(timeRanges[0].value);
const [selectedRange, setSelectedRange] = useState(timeRanges[1].value);
const data = useHomePageExtraStats(selectedRange);

const handleTimeRangeChange = (value: string | number) => {
Expand Down

0 comments on commit 56627ab

Please sign in to comment.