From 023fe49c9954223ffdab0cfb7093906a872e44cb Mon Sep 17 00:00:00 2001 From: Amardeepsingh Siglani Date: Tue, 25 Apr 2023 21:33:57 -0700 Subject: [PATCH] passing props for date time filter (#551) (#554) Signed-off-by: Amardeepsingh Siglani Signed-off-by: AWSHurneyt --- .../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 9d91c03a2..b3bc8f010 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} /> ); }}