dce-reactkit 3.2.2-beta.13 → 3.2.2-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.2.2-beta.13",
3
+ "version": "3.2.2-beta.14",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -876,13 +876,8 @@ const LogReviewer: React.FC<Props> = (props) => {
876
876
  day={dateFilterState.startDate.day}
877
877
  chooseFromPast
878
878
  onChange={(month, day, year) => {
879
- dispatch({
880
- type: ActionType.UpdateDateFilterState,
881
- dateFilterState: {
882
- ...dateFilterState,
883
- startDate: { month, day, year },
884
- },
885
- });
879
+ dateFilterState.startDate = { month, day, year };
880
+ handleDateRangeUpdated(dateFilterState);
886
881
  }}
887
882
  />
888
883
  {' '}
@@ -896,13 +891,8 @@ const LogReviewer: React.FC<Props> = (props) => {
896
891
  day={dateFilterState.endDate.day}
897
892
  chooseFromPast
898
893
  onChange={(month, day, year) => {
899
- dispatch({
900
- type: ActionType.UpdateDateFilterState,
901
- dateFilterState: {
902
- ...dateFilterState,
903
- endDate: { month, day, year },
904
- },
905
- });
894
+ dateFilterState.endDate = { month, day, year };
895
+ handleDateRangeUpdated(dateFilterState);
906
896
  }}
907
897
  />
908
898
  </TabBox>