From 39c416f08e95cd780edb2393d8255f4781b794db Mon Sep 17 00:00:00 2001 From: Guido Modarelli Date: Thu, 17 Oct 2024 11:56:27 -0300 Subject: [PATCH] Refactor AgentsWelcome component structure and layout --- .../common/welcome/agents-welcome.js | 126 +++++++++--------- 1 file changed, 61 insertions(+), 65 deletions(-) diff --git a/plugins/main/public/components/common/welcome/agents-welcome.js b/plugins/main/public/components/common/welcome/agents-welcome.js index 43bdc85ef4..30172d58e2 100644 --- a/plugins/main/public/components/common/welcome/agents-welcome.js +++ b/plugins/main/public/components/common/welcome/agents-welcome.js @@ -456,69 +456,66 @@ export const AgentsWelcome = compose(
{title}
-
- - -
-
- + +
+ + + +
+ + + + {' '} + {/* TODO: Replace with SearchBar and replace implementation to get the time range in AgentView component*/} + { }} /> + + + {(this.state.widthWindow < 1150 && ( + + + - -
-
-
- - - - {' '} - {/* TODO: Replace with SearchBar and replace implementation to get the time range in AgentView component*/} - {}} /> - - - {(this.state.widthWindow < 1150 && ( - - - - {this.renderMitrePanel()} - - {this.renderCompliancePanel()} - - - - - - - - - {' '} - {/* Events count evolution */} - {this.renderEventCountVisualization()} - - - - - {this.renderSCALastScan()} - - - )) || ( + {this.renderMitrePanel()} + + {this.renderCompliancePanel()} + + + + + + + + + {' '} + {/* Events count evolution */} + {this.renderEventCountVisualization()} + + + + + {this.renderSCALastScan()} + + + )) || ( @@ -546,9 +543,8 @@ export const AgentsWelcome = compose( )} -
-
-
+ + );