Skip to content

Commit

Permalink
amend props in annotation form
Browse files Browse the repository at this point in the history
  • Loading branch information
jesscall authored and laemtl committed Nov 22, 2022
1 parent e8704b4 commit f0ca430
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {setTimeSelection} from '../store/state/timeSelection';
import {setRightPanel} from '../store/state/rightPanel';
import {setEpochs} from '../store/state/dataset';
import * as R from 'ramda';
import {toggleEpoch, updateActiveEpoch, updateFilteredEpochs} from '../store/logic/filterEpochs';
import {toggleEpoch, updateActiveEpoch} from '../store/logic/filterEpochs';
import {RootState} from '../store';

type CProps = {
Expand All @@ -14,6 +14,7 @@ type CProps = {
filteredEpochs: number[],
setTimeSelection: (_: [number, number]) => void,
setRightPanel: (_: RightPanel) => void,
setEpochs: (_: EpochType[]) => void,
toggleEpoch: (_: number) => void,
updateActiveEpoch: (_: number) => void,
interval: [number, number],
Expand All @@ -25,6 +26,7 @@ const AnnotationForm = ({
filteredEpochs,
setTimeSelection,
setRightPanel,
setEpochs,
toggleEpoch,
updateActiveEpoch,
interval,
Expand Down Expand Up @@ -290,10 +292,6 @@ export default connect(
dispatch,
setEpochs
),
updateFilteredEpochs: R.compose(
dispatch,
updateFilteredEpochs
),
toggleEpoch: R.compose(
dispatch,
toggleEpoch
Expand Down

0 comments on commit f0ca430

Please # to comment.