From 7db949836227ac8b9bb888123c7089ef04ea001e Mon Sep 17 00:00:00 2001 From: Amardeepsingh Siglani Date: Wed, 26 Apr 2023 16:13:59 -0700 Subject: [PATCH] passing props for date time filter (#551) (#555) Signed-off-by: Amardeepsingh Siglani --- .../containers/CorrelationsContainer.tsx | 21 +++++++++++-------- public/pages/Main/Main.tsx | 2 ++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/public/pages/Correlations/containers/CorrelationsContainer.tsx b/public/pages/Correlations/containers/CorrelationsContainer.tsx index afa25eb46..871d5e930 100644 --- a/public/pages/Correlations/containers/CorrelationsContainer.tsx +++ b/public/pages/Correlations/containers/CorrelationsContainer.tsx @@ -72,7 +72,6 @@ interface CorrelationsState { export class Correlations extends React.Component { static contextType = CoreServicesContext; - private dateTimeFilter: DateTimeFilter; constructor(props: CorrelationsProps) { super(props); this.state = { @@ -82,10 +81,14 @@ export class Correlations extends React.Component { {...props} history={props.history} onMount={() => this.setState({ selectedNavItemIndex: 6 })} + dateTimeFilter={this.state.dateTimeFilter} + setDateTimeFilter={this.setDateTimeFilter} /> ); }}