File tree Expand file tree Collapse file tree 8 files changed +518
-323
lines changed
Expand file tree Collapse file tree 8 files changed +518
-323
lines changed Original file line number Diff line number Diff line change 33 "ruby.specCommand" : " bundle exec rspec" ,
44 "prettier.configPath" : " ./front/.prettierrc" ,
55 "prettier.packageManager" : " yarn" ,
6- "editor.defaultFormatter" : " esbenp.prettier-vscode"
6+ "editor.defaultFormatter" : " esbenp.prettier-vscode" ,
7+ "[typescriptreact]" : {
8+ "editor.defaultFormatter" : " vscode.typescript-language-features"
9+ }
710}
Original file line number Diff line number Diff line change @@ -28,27 +28,11 @@ import { FieldDisplay } from 'types/globalTypes';
2828import './AggDropDownStyle.css' ;
2929import { PresentSiteFragment , PresentSiteFragment_siteView } from 'types/PresentSiteFragment' ;
3030import SortKind from './SortKind' ;
31- import BucketsPanel from './BucketsPanel' ;
32- import Filter from './Filter' ;
3331import SearchPageCrowdAggBucketsQuery from 'queries/SearchPageCrowdAggBucketsQuery' ;
3432import SearchPageAggBucketsQuery from 'queries/SearchPageAggBucketsQuery' ;
35- import RangeSelector from './RangeSelector' ;
36- import TwoLevelPieChart from './TwoLevelPieChart' ;
37- import BarChartComponent from './BarChart'
38- import AllowMissingCheckbox from './AllowMissingCheckbox' ;
3933import { ApolloClient } from '@apollo/client' ;
4034import { capitalize } from 'utils/helpers' ;
41- import {
42- ThemedPresearchCard ,
43- ThemedPresearchHeader ,
44- PresearchTitle ,
45- PresearchFilter ,
46- PresearchPanel ,
47- PresearchContent ,
48- } from 'components/StyledComponents' ;
4935import { withPresentSite2 } from "../PresentSiteProvider/PresentSiteProvider" ;
50- import BucketsDropDown from './BucketsDropDown' ;
51- import LocationAgg from './LocationAgg' ;
5236import CustomDropDown from './CustomDrop' ;
5337import AggFilterInputUpdater from 'containers/SearchPage/components/AggFilterInputUpdater' ;
5438import { withAggContext } from 'containers/SearchPage/components/AggFilterUpdateContext' ;
Original file line number Diff line number Diff line change @@ -30,24 +30,9 @@ import './AggDropDownStyle.css';
3030import { PresentSiteFragment , PresentSiteFragment_siteView } from 'types/PresentSiteFragment' ;
3131import SortKind from './SortKind' ;
3232import BucketsKeyValuePanel from './BucketsKeyValuePanel' ;
33- import Filter from './Filter' ;
3433import SearchPageCrowdAggBucketsQuery from 'queries/SearchPageCrowdAggBucketsQuery' ;
3534import SearchPageAggBucketsQuery from 'queries/SearchPageAggBucketsQuery' ;
36- import RangeSelector from './RangeSelector' ;
37- import TwoLevelPieChart from './TwoLevelPieChart' ;
38- import BarChartComponent from './BarChart'
39- import AllowMissingCheckbox from './AllowMissingCheckbox' ;
40- import { capitalize } from 'utils/helpers' ;
41- import {
42- ThemedPresearchCard ,
43- ThemedPresearchHeader ,
44- PresearchTitle ,
45- PresearchFilter ,
46- PresearchPanel ,
47- PresearchContent ,
48- } from 'components/StyledComponents' ;
4935import { withPresentSite2 } from "../PresentSiteProvider/PresentSiteProvider" ;
50- import BucketsDropDown from './BucketsDropDown' ;
5136
5237const PAGE_SIZE = 25 ;
5338
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22import { withAggContext } from 'containers/SearchPage/components/AggFilterUpdateContext' ;
33import AggFilterInputUpdater from 'containers/SearchPage/components/AggFilterInputUpdater' ;
4- import { Checkbox } from 'react-bootstrap' ;
54import { AggBucket } from '../SearchPage/Types' ;
65import bucketKeyIsMissing from 'utils/aggs/bucketKeyIsMissing' ;
76
8- interface AllowMissingCheckboxProps {
7+ interface AllowMissingDropDownItemProps {
98 buckets : AggBucket [ ] | null ;
109 updater : AggFilterInputUpdater ;
1110}
1211
13- function AllowMissingCheckbox ( props : AllowMissingCheckboxProps ) {
12+ function AllowMissingDropDownItem ( props : AllowMissingDropDownItemProps ) {
1413 const { buckets, updater } = props ;
1514 let totalMissing : number = 0 ;
1615 ( buckets || [ ] ) . forEach ( bucket => {
@@ -19,12 +18,10 @@ function AllowMissingCheckbox(props: AllowMissingCheckboxProps) {
1918 }
2019 } ) ;
2120 return (
22- < Checkbox
23- checked = { updater . allowsMissing ( ) }
24- onChange = { ( ) =>
25- updater . toggleAllowMissing ( )
26- } > { `Allow Missing (${ totalMissing } )` } </ Checkbox >
21+ < div
22+ className = "item-content"
23+ > { `Allow Missing (${ totalMissing } )` } </ div >
2724 ) ;
2825}
2926
30- export default withAggContext ( AllowMissingCheckbox ) ;
27+ export default withAggContext ( AllowMissingDropDownItem ) ;
You can’t perform that action at this time.
0 commit comments