This repository has been archived by the owner on Sep 11, 2019. It is now read-only.
forked from jroo/hourglass
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Seppi
committed
Apr 10, 2018
1 parent
fd5c8ec
commit d38720b
Showing
8 changed files
with
181 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"presets": ["env", "react"] | ||
"presets": ["env", "react"], | ||
"plugins": [ | ||
"syntax-dynamic-import" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
frontend/source/js/data-explorer/components/loadable-optional-filters.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
import React from 'react'; | ||
import Loadable from 'react-loadable'; | ||
|
||
const LoadableOptionalFilters = Loadable({ | ||
loader: () => import('./optional-filters'), | ||
// eslint-disable-next-line react/prop-types | ||
loading({ error, pastDelay }) { | ||
if (error) { | ||
return <div>Error!</div>; | ||
} else if (pastDelay) { | ||
return <div>Loading...</div>; | ||
} | ||
return null; | ||
}, | ||
}); | ||
|
||
export default LoadableOptionalFilters; |
23 changes: 23 additions & 0 deletions
23
frontend/source/js/data-explorer/components/optional-filters.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
import React, { Fragment } from 'react'; | ||
|
||
import BusinessSize from './business-size'; | ||
import ContractYear from './contract-year'; | ||
import EducationLevel from './education-level'; | ||
import Experience from './experience'; | ||
import Schedule from './schedule'; | ||
import Site from './site'; | ||
|
||
const OptionalFilters = () => ( | ||
<Fragment> | ||
<EducationLevel /> | ||
<Experience /> | ||
<Site /> | ||
<BusinessSize /> | ||
<Schedule /> | ||
<ContractYear /> | ||
</Fragment> | ||
); | ||
|
||
export default OptionalFilters; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters