chore
This commit is contained in:
@@ -17,7 +17,7 @@ export async function GET(req: Request) {
|
||||
}
|
||||
|
||||
const url = new URL(req.url);
|
||||
const range = url.searchParams.get("range") || "90d";
|
||||
const range = url.searchParams.get("range") || "7d";
|
||||
|
||||
const startDate = getStartDate(range);
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ const chartConfig = {
|
||||
} satisfies ChartConfig;
|
||||
|
||||
export function InteractiveBarChart() {
|
||||
const [timeRange, setTimeRange] = useState<string>("90d");
|
||||
const [timeRange, setTimeRange] = useState<string>("7d");
|
||||
const [activeChart, setActiveChart] =
|
||||
React.useState<keyof typeof chartConfig>("users");
|
||||
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
@@ -26,8 +26,8 @@
|
||||
--radius: 0.5rem;
|
||||
--blue: 210 100% 50%;
|
||||
|
||||
--chart-1: 198 93% 60%;
|
||||
--chart-2: 158deg 64% 52%;
|
||||
--chart-1: 208 93% 60%;
|
||||
--chart-2: 138deg 64% 52%;
|
||||
--chart-3: 216 92% 60%;
|
||||
--chart-4: 210 98% 78%;
|
||||
--chart-5: 212 97% 87%;
|
||||
|
||||
Reference in New Issue
Block a user