Skip to content

Commit

Permalink
chore: make container flex better, switch ad set list to datagrid
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKrieger committed Oct 12, 2023
1 parent 93dbc10 commit 3dcf59b
Show file tree
Hide file tree
Showing 18 changed files with 265 additions and 669 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Box, Tooltip } from "@mui/material";
import _ from "lodash";
import { format, formatDistanceToNow, parseISO } from "date-fns";
import { CellValue } from "./EnhancedTable";
import { ReactChild, ReactNode, useContext } from "react";
import { ReactElement, ReactNode, useContext } from "react";
import { formatInTimeZone } from "date-fns-tz";
import enUS from "date-fns/locale/en-US";
import {
Expand All @@ -12,18 +11,18 @@ import {
useUpdateCampaignMutation,
} from "graphql/campaign.generated";
import { useUpdateAdSetMutation } from "graphql/ad-set.generated";
import { OnOff } from "../Switch/OnOff";
import { OnOff } from "components/Switch/OnOff";
import { displayFromCampaignState } from "util/displayState";
import { CampaignExtras } from "user/adSet/AdSetList";
import { FilterContext } from "state/context";
import { refetchAdvertiserCampaignsQuery } from "graphql/advertiser.generated";
import { UpdateAdSetInput } from "graphql/types";

export type CellValueRenderer = (value: CellValue) => ReactNode;
export type CellValueRenderer = (value: any) => ReactNode;
const ADS_DEFAULT_TIMEZONE = "America/New_York";
const TOOLTIP_FORMAT = "E d LLL yyyy HH:mm:ss zzz";

function formatDateForTooltip(dt: Date): ReactChild {
function formatDateForTooltip(dt: Date): ReactElement {
return (
<>
<Box>
Expand Down
258 changes: 0 additions & 258 deletions src/components/EnhancedTable/EnhancedTable.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions src/components/EnhancedTable/EnhancedTableHeader.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions src/components/EnhancedTable/EnhancedTableRow.tsx

This file was deleted.

48 changes: 0 additions & 48 deletions src/components/EnhancedTable/FilterInput.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/EnhancedTable/index.ts

This file was deleted.

Loading

0 comments on commit 3dcf59b

Please sign in to comment.