diff --git a/ui/src/components/table/listings/ListingsFilter.jsx b/ui/src/components/table/listings/ListingsFilter.jsx deleted file mode 100644 index 77004e7..0000000 --- a/ui/src/components/table/listings/ListingsFilter.jsx +++ /dev/null @@ -1,53 +0,0 @@ -import { Card, Checkbox, Descriptions, Divider, Select } from '@douyinfe/semi-ui'; -import React from 'react'; -import { useSelector } from '../../../services/state/store.js'; -import { Typography } from '@douyinfe/semi-ui'; - -import './ListingsFilter.less'; - -export default function ListingsFilter({ onWatchListFilter, onActivityFilter, onJobNameFilter, onProviderFilter }) { - const jobs = useSelector((state) => state.jobs.jobs); - const provider = useSelector((state) => state.provider); - const { Title } = Typography; - return ( - - Filter by: - -
- - - onWatchListFilter(e.target.checked)}>Only Watch List - - - onActivityFilter(e.target.checked)}>Only Active Listings - - - - - - - - -
- ); -} diff --git a/ui/src/components/table/listings/ListingsFilter.less b/ui/src/components/table/listings/ListingsFilter.less deleted file mode 100644 index a3a1d23..0000000 --- a/ui/src/components/table/listings/ListingsFilter.less +++ /dev/null @@ -1,4 +0,0 @@ -.listingsFilter { - margin-bottom: 1rem; - background: rgb(53, 54, 60); -} \ No newline at end of file diff --git a/ui/src/components/table/listings/ListingsTable.jsx b/ui/src/components/table/listings/ListingsTable.jsx index 4eecbee..d630fec 100644 --- a/ui/src/components/table/listings/ListingsTable.jsx +++ b/ui/src/components/table/listings/ListingsTable.jsx @@ -1,5 +1,18 @@ import React, { useState, useEffect, useMemo } from 'react'; -import { Table, Popover, Input, Descriptions, Tag, Image, Empty, Button, Toast, Divider } from '@douyinfe/semi-ui'; +import { + Table, + Popover, + Input, + Descriptions, + Tag, + Image, + Empty, + Button, + Toast, + Divider, + Space, + Select, +} from '@douyinfe/semi-ui'; import { useActions, useSelector } from '../../../services/state/store.js'; import { IconClose, IconDelete, IconSearch, IconStar, IconStarStroked, IconTick } from '@douyinfe/semi-icons'; import * as timeService from '../../../services/time/timeService.js'; @@ -10,166 +23,220 @@ import './ListingsTable.less'; import { format } from '../../../services/time/timeService.js'; import { IllustrationNoResult, IllustrationNoResultDark } from '@douyinfe/semi-illustrations'; import { xhrDelete, xhrPost } from '../../../services/xhr.js'; -import ListingsFilter from './ListingsFilter.jsx'; -const columns = [ - { - title: 'Watchlist', - width: 110, - dataIndex: 'isWatched', - sorter: true, - render: (id, row) => { - return ( -
- -
- ); + content="Delete Listing" + > +