-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.tsx
70 lines (65 loc) · 2.36 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import React from 'react';
import styled from 'styled-components';
import {
// ApiUri,
// ApiAccessToken,
RangeFilter,
ResultsTable,
FilterSelector,
BooleanFilter,
CustomQuery,
SuggestionSelector,
Suggestion,
ExistsFilter,
MultiSelectFilter,
HistoryNav, QueryStringFilter
} from './features';
const Main = styled.div`
height: 100vh;
width: 100vw;
background-color: white;
display: flex;
justify-content: top;
align-items: center;
flex-direction: column;
font-size: 14px;
font-family: 'Roboto';
`;
const HorizontalLayout = styled.div`
display: flex;
`;
export default () => (
<Main>
<HistoryNav />
<CustomQuery />
<HorizontalLayout>
<SuggestionSelector suggestionType={'prefix'} defaultFieldName={'tags'}>
{fieldName => (
<Suggestion fieldName={fieldName} suggestionType={'prefix'}>
{(multiSelectFieldFilters, removeSubFieldValueFromFilter) => (
<MultiSelectFilter
fieldName={fieldName}
removeSubFieldValueFromFilter={removeSubFieldValueFromFilter}
multiSelectFieldFilters={multiSelectFieldFilters}
/>
)}
</Suggestion>
)}
</SuggestionSelector>
{/* <FilterSelector filterType={'range'} defaultFilterName={'instagram.total_posts'}>
{filterName => <RangeFilter filterName={filterName} maxRange={50} />}
</FilterSelector> */}
<FilterSelector filterType={'exists'} defaultFilterName={'tags'}>
{filterName => <ExistsFilter filterName={filterName} maxRange={100} />}
</FilterSelector>
<FilterSelector filterType={'range'} defaultFilterName={'user_profile.age'}>
{filterName => <RangeFilter filterName={filterName} maxRange={100} />}
</FilterSelector>
{/* <FilterSelector filterType={'boolean'} defaultFilterName={'instagram.is_business'}>
{filterName => <BooleanFilter filterName={filterName}/>}
</FilterSelector> */}
<QueryStringFilter field={'user_profile.age'} />
</HorizontalLayout>
<ResultsTable />
</Main>
);