Commit df8b62df authored by Aron Fiechter's avatar Aron Fiechter
Browse files

Map redux state yearRange and resultsById to Voronoi props

parent a4fe7ae7
import React from 'react';
import { connect } from 'react-redux';
import { setHoverSite, clearHoverSite, performGetEntity, selectHoverSite } from './voronoiSlice';
import { selectResult } from '../navbar/querySlice';
import { selectResult, selectResultsById } from '../navbar/querySlice';
import logger from '../../utils/logger';
import Entity from './entity/Entity';
......@@ -14,6 +14,7 @@ import Container from 'react-bootstrap/Container';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import Tooltip from './tooltip/Tooltip';
import { selectRange } from '../yearrange/yearRangeSlice';
// Actions that can be dispatched
const mapDispatch = { setHoverSite, clearHoverSite, performGetEntity };
......@@ -22,6 +23,8 @@ const mapDispatch = { setHoverSite, clearHoverSite, performGetEntity };
const mapStateToProps = (state) => ({
data: selectResult(state),
hoveredSite: selectHoverSite(state),
yearRange: selectRange(state),
resultsById: selectResultsById(state),
});
class Voronoi extends React.Component {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment