mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 12:58:35 +03:00
lint
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = {
|
||||
features: {
|
||||
USE_CATEGORIES: false,
|
||||
CATEGORIES_AS_FILTERS: false,
|
||||
USE_FILTERS: false,
|
||||
USE_FILTERS: true,
|
||||
FILTERS_AS_NARRATIVES: false,
|
||||
USE_NARRATIVES: false,
|
||||
USE_SOURCES: true,
|
||||
|
||||
@@ -28,12 +28,12 @@ export function fetchDomain () {
|
||||
const features = getState().features
|
||||
dispatch(toggleFetchingDomain())
|
||||
|
||||
let configPromise = Promise.resolve([])
|
||||
if (features.USE_REMOTE_CONFIG) {
|
||||
configPromise = fetch(CONFIG_URL)
|
||||
.then(response => response.json())
|
||||
.catch(() => handleError("Couldn't find data at the config URL you specified."))
|
||||
}
|
||||
// let configPromise = Promise.resolve([])
|
||||
// if (features.USE_REMOTE_CONFIG) {
|
||||
// configPromise = fetch(CONFIG_URL)
|
||||
// .then(response => response.json())
|
||||
// .catch(() => handleError("Couldn't find data at the config URL you specified."))
|
||||
// }
|
||||
|
||||
// NB: EVENT_DATA_URL is a list, and so results are aggregated
|
||||
const eventPromise = Promise.all(
|
||||
|
||||
@@ -65,7 +65,6 @@ class Card extends React.Component {
|
||||
return <div>ERROR: something went wrong loading sources, TODO:</div>
|
||||
}
|
||||
|
||||
|
||||
const sourceLang = copy[this.props.language].cardstack.sources
|
||||
return (
|
||||
<div className='card-col'>
|
||||
|
||||
@@ -161,7 +161,7 @@ class CardStack extends React.Component {
|
||||
className={`card-stack narrative-mode
|
||||
${isCardstack ? '' : ' folded'}`
|
||||
}
|
||||
style={{height}}
|
||||
style={{ height }}
|
||||
>
|
||||
{this.renderNarrativeContent()}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user