Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(site): fix insights picker and disable animation
  • Loading branch information
BrunoQuaresma committed Jan 3, 2024
commit ee49502d23454d770186abf8a31bb48511666331
1 change: 1 addition & 0 deletions site/src/components/ActiveUserChart/ActiveUserChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const ActiveUserChart: FC<ActiveUserChartProps> = ({

const options: ChartOptions<"line"> = {
responsive: true,
animation: false,
plugins: {
annotation: {
annotations: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,18 @@ export const DateRange: FC<DateRangeProps> = ({ value, onChange }) => {
key: "selection",
},
]);
const currentRange = {
startDate: ranges[0].startDate as Date,
endDate: ranges[0].endDate as Date,
};

return (
<Popover>
{(popover) => (
<>
<PopoverTrigger>
<Button>
<span>{format(currentRange.startDate, "MMM d, Y")}</span>
<span>{format(value.startDate, "MMM d, Y")}</span>
<ArrowRightAltOutlined
css={{ width: 16, height: 16, marginLeft: 8, marginRight: 8 }}
/>
<span>{format(currentRange.endDate, "MMM d, Y")}</span>
<span>{format(value.endDate, "MMM d, Y")}</span>
</Button>
</PopoverTrigger>
<PopoverContent>
Expand Down