Skip to content

Commit

Permalink
fix: Tusk automated feedback for automated check failure
Browse files Browse the repository at this point in the history
  • Loading branch information
use-tusk[bot] authored Oct 8, 2024
1 parent 84bd865 commit 9028dc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/components/templates/dashboard/dashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ import StyledAreaChart from "./styledAreaChart";
import SuggestionModal from "./suggestionsModal";
import { useDashboardPage } from "./useDashboardPage";
import { IslandContainer } from "@/components/ui/islandContainer";
import { DateRange } from "react-day-picker";

const ResponsiveGridLayout = WidthProvider(Responsive);

Expand Down Expand Up @@ -170,6 +171,8 @@ const DashboardPage = (props: DashboardPageProps) => {

const debouncedAdvancedFilter = useDebounce(advancedFilters, 500);

const debouncedRefetch = useDebounce(refetch, 500);

const timeIncrement = getTimeInterval(timeFilter);

const { unauthorized, currentTier } = useGetUnauthorized(user.id);
Expand Down
3 changes: 3 additions & 0 deletions web/components/templates/requestsV2/requestsPageV2.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ArrowPathIcon, HomeIcon, PlusIcon } from "@heroicons/react/24/outline";
import { DateRange } from "react-day-picker";

import Link from "next/link";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
Expand Down Expand Up @@ -257,6 +258,7 @@ const RequestsPageV2 = (props: RequestsPageV2Props) => {

const [timeFilter, setTimeFilter] = useState<FilterNode>(getTimeFilter());
const timeRange = useMemo(getTimeRange, []);
const debouncedRefetch = useDebounce(refetch, 500);

const [advancedFilters, setAdvancedFilters] = useState<UIFilterRowTree>(
getRootFilterNode()
Expand Down Expand Up @@ -873,6 +875,7 @@ const RequestsPageV2 = (props: RequestsPageV2Props) => {
currentTimeFilter: timeRange,
defaultValue: "1m",
onTimeSelectHandler: onTimeSelectHandler,
onDateChange: onTimeSelectHandler,
}}
onRowSelect={(row, index) => {
onRowSelectHandler(row, index);
Expand Down

0 comments on commit 9028dc1

Please sign in to comment.