|
1 | 1 | import { |
2 | 2 | Col, |
3 | | - theme, |
4 | | - Row, |
5 | 3 | IconButton, |
| 4 | + Row, |
6 | 5 | Span, |
7 | 6 | TextDescription, |
| 7 | + theme, |
8 | 8 | } from '@appquality/unguess-design-system'; |
| 9 | +import { createSelector } from '@reduxjs/toolkit'; |
| 10 | +import { useEffect, useMemo, useState } from 'react'; |
9 | 11 | import { useTranslation } from 'react-i18next'; |
10 | 12 | import { useAppSelector } from 'src/app/hooks'; |
11 | | -import styled from 'styled-components'; |
12 | 13 | import { ReactComponent as GridIcon } from 'src/assets/icons/grid.svg'; |
13 | 14 | import { ReactComponent as ListIcon } from 'src/assets/icons/list.svg'; |
14 | | -import { useEffect, useMemo, useState } from 'react'; |
15 | | -import { selectFilteredCampaigns } from 'src/features/campaigns'; |
16 | 15 | import { Campaign, useGetProjectsByPidCampaignsQuery } from 'src/features/api'; |
17 | | -import { createSelector } from '@reduxjs/toolkit'; |
| 16 | +import { selectFilteredCampaigns } from 'src/features/campaigns'; |
18 | 17 | import useWindowSize from 'src/hooks/useWindowSize'; |
19 | | -import { CardList } from './list'; |
20 | | -import { TableList } from './table'; |
| 18 | +import styled from 'styled-components'; |
| 19 | +import { CardRowLoading } from '../CardRowLoading'; |
21 | 20 | import { Separator } from '../Separator'; |
22 | | -import { Filters } from '../filters'; |
23 | 21 | import { EmptyResults } from '../emptyState'; |
24 | | -import { CardRowLoading } from '../CardRowLoading'; |
| 22 | +import { Filters } from '../filters'; |
| 23 | +import { CardList } from './list'; |
| 24 | +import { TableList } from './table'; |
25 | 25 |
|
26 | 26 | const FloatRight = styled.div` |
27 | 27 | float: right; |
@@ -112,7 +112,7 @@ export const ProjectItems = ({ projectId }: { projectId: number }) => { |
112 | 112 | )} |
113 | 113 | </Row> |
114 | 114 | <Separator style={{ marginTop: '0', marginBottom: theme.space.sm }} /> |
115 | | - <Filters campaigns={filteredCampaigns} /> |
| 115 | + <Filters /> |
116 | 116 |
|
117 | 117 | {campaignsCount > 0 && viewType === 'list' && ( |
118 | 118 | <TableList campaigns={filteredCampaigns as Campaign[]} /> |
|
0 commit comments