Skip to content

Commit

Permalink
refactor: organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe authored and moshloop committed Oct 31, 2024
1 parent 53b1d0b commit 7a22411
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import FormikFilterForm from "@flanksource-ui/components/Forms/FormikFilterForm";
import { useConfigChangesArbitraryFilters } from "@flanksource-ui/hooks/useConfigChangesArbitraryFilters";
import ClosableBadge from "@flanksource-ui/ui/Badge/ClosableBadge";
import clsx from "clsx";
import { useCallback, useMemo } from "react";
import { FaBan } from "react-icons/fa";
import { useSearchParams } from "react-router-dom";
import { useConfigChangesArbitraryFilters } from "../../../../hooks/useConfigChangesArbitraryFilters";
import { paramsToReset } from "../ConfigChangeTable";
import { ChangesTypesDropdown } from "./ChangeTypesDropdown";
import { ConfigChangeSeverity } from "./ConfigChangeSeverity";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import FormikFilterForm from "@flanksource-ui/components/Forms/FormikFilterForm";
import { useConfigChangesArbitraryFilters } from "@flanksource-ui/hooks/useConfigChangesArbitraryFilters";
import clsx from "clsx";
import { useConfigChangesArbitraryFilters } from "../../../../../hooks/useConfigChangesArbitraryFilters";
import { ChangesTypesDropdown } from "../../ConfigChangesFilters/ChangeTypesDropdown";
import { ConfigChangeSeverity } from "../../ConfigChangesFilters/ConfigChangeSeverity";
import ConfigChangesDateRangeFilter from "../../ConfigChangesFilters/ConfigChangesDateRangeFIlter";
Expand Down
4 changes: 2 additions & 2 deletions src/pages/playbooks/PlaybookRunsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useGetPlaybookSpecsDetails } from "@flanksource-ui/api/query-hooks/playbooks";
import { getPlaybookRuns } from "@flanksource-ui/api/services/playbooks";
import PlaybookRunsFilterBar, {
playbookRunsDefaultDateFilter
Expand All @@ -12,6 +13,7 @@ import {
BreadcrumbRoot
} from "@flanksource-ui/ui/BreadcrumbNav";
import useReactTablePaginationState from "@flanksource-ui/ui/DataTable/Hooks/useReactTablePaginationState";
import useReactTableSortState from "@flanksource-ui/ui/DataTable/Hooks/useReactTableSortState";
import useTimeRangeParams from "@flanksource-ui/ui/Dates/TimeRangePicker/useTimeRangeParams";
import { Head } from "@flanksource-ui/ui/Head";
import { SearchLayout } from "@flanksource-ui/ui/Layout/SearchLayout";
Expand All @@ -20,8 +22,6 @@ import { useQuery } from "@tanstack/react-query";
import { useState } from "react";
import { FaHome } from "react-icons/fa";
import { useSearchParams } from "react-router-dom";
import { useGetPlaybookSpecsDetails } from "../../api/query-hooks/playbooks";
import useReactTableSortState from "@flanksource-ui/ui/DataTable/Hooks/useReactTableSortState";

export default function PlaybookRunsPage() {
const [isEditPlaybookFormOpen, setIsEditPlaybookFormOpen] = useState(false);
Expand Down
21 changes: 12 additions & 9 deletions src/pages/playbooks/PlaybooksList.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import { useGetAllPlaybookSpecs } from "@flanksource-ui/api/query-hooks/playbooks";
import ErrorPage from "@flanksource-ui/components/Errors/ErrorPage";
import { AuthorizationAccessCheck } from "@flanksource-ui/components/Permissions/AuthorizationAccessCheck";
import { playbookRunsPageTabs } from "@flanksource-ui/components/Playbooks/Runs/PlaybookRunsPageTabs";
import PlaybookSpecsForm from "@flanksource-ui/components/Playbooks/Settings/PlaybookSpecsForm";
import PlaybookSpecsList from "@flanksource-ui/components/Playbooks/Settings/PlaybookSpecsList";
import { tables } from "@flanksource-ui/context/UserAccessContext/permissions";
import {
BreadcrumbNav,
BreadcrumbRoot
} from "@flanksource-ui/ui/BreadcrumbNav";
import { Head } from "@flanksource-ui/ui/Head";
import { SearchLayout } from "@flanksource-ui/ui/Layout/SearchLayout";
import TabbedLinks from "@flanksource-ui/ui/Tabs/TabbedLinks";
import { useState } from "react";
import { AiFillPlusCircle } from "react-icons/ai";
import { FaHome } from "react-icons/fa";
import { useGetAllPlaybookSpecs } from "../../api/query-hooks/playbooks";
import ErrorPage from "../../components/Errors/ErrorPage";
import { playbookRunsPageTabs } from "../../components/Playbooks/Runs/PlaybookRunsPageTabs";
import PlaybookSpecsForm from "../../components/Playbooks/Settings/PlaybookSpecsForm";
import PlaybookSpecsList from "../../components/Playbooks/Settings/PlaybookSpecsList";
import { BreadcrumbNav, BreadcrumbRoot } from "../../ui/BreadcrumbNav";
import { Head } from "../../ui/Head";
import { SearchLayout } from "../../ui/Layout/SearchLayout";
import TabbedLinks from "../../ui/Tabs/TabbedLinks";

export function PlaybooksListPage() {
const [isOpen, setIsOpen] = useState(false);
Expand Down

0 comments on commit 7a22411

Please sign in to comment.