From 4dd9a31a75530511a347fc32f792bd71b15bcb8e Mon Sep 17 00:00:00 2001 From: Pritimay Sarkar Date: Fri, 8 Dec 2023 15:33:59 +0530 Subject: [PATCH] add accordion in help for automatic --- src/components/Help.css | 19 +++++++ src/components/Help.js | 111 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 src/components/Help.css create mode 100644 src/components/Help.js diff --git a/src/components/Help.css b/src/components/Help.css new file mode 100644 index 0000000..7340e28 --- /dev/null +++ b/src/components/Help.css @@ -0,0 +1,19 @@ +.step-title { + font-weight: 600; + margin: 10px; + margin-top: 50px; +} + +.auto-analysis-help-image { + margin: 10px; +} + +.step-description { + margin: 10px; +} + +.help-feature { + font-weight: 900; + font-size: 1.5rem; + margin: 10px; +} \ No newline at end of file diff --git a/src/components/Help.js b/src/components/Help.js new file mode 100644 index 0000000..ad7d8bb --- /dev/null +++ b/src/components/Help.js @@ -0,0 +1,111 @@ +import React, { useState } from 'react'; +import Accordion from '@mui/material/Accordion'; +import AccordionDetails from '@mui/material/AccordionDetails'; +import AccordionSummary from '@mui/material/AccordionSummary'; +import Typography from '@mui/material/Typography'; +import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; + +import './Help.css'; + +function Help({ url, show }) { + const [startDate, setStartDate] = useState(""); + const [endDate, setEndDate] = useState(""); + + const [expanded, setExpanded] = useState(false); + + const handleChange = + (panel) => (event, isExpanded) => { + setExpanded(isExpanded ? panel : false); + }; + + return ( +
+ + } + aria-controls="panel1bh-content" + id="panel1bh-header" + > + + Auto Analysis + + Auto Analysis of device data with dye and HB + + + +
Step 1:
+
Click on the start date tab and select the necessary date. Repeat the same process on the end date tab as well.
+ icon + +
Step 2:
+
Select an end date, it has to be at least one date post the start date.
+ icon + +
Step 3:
+
Click on the Download Excel button and wait for the document to download.
+ icon +
+
+
+ + + {/* + } + aria-controls="panel2bh-content" + id="panel2bh-header" + > + Users + + You are currently not an owner + + + + + Donec placerat, lectus sed mattis semper, neque lectus feugiat lectus, + varius pulvinar diam eros in elit. Pellentesque convallis laoreet + laoreet. + + + */} + + + {/* + } + aria-controls="panel3bh-content" + id="panel3bh-header" + > + + Advanced settings + + + Filtering has been entirely disabled for whole web server + + + + + Nunc vitae orci ultricies, auctor nunc in, volutpat nisl. Integer sit + amet egestas eros, vitae egestas augue. Duis vel est augue. + + + + + } + aria-controls="panel4bh-content" + id="panel4bh-header" + > + Personal data + + + + Nunc vitae orci ultricies, auctor nunc in, volutpat nisl. Integer sit + amet egestas eros, vitae egestas augue. Duis vel est augue. + + + */} +
+ ); +} +export default Help; \ No newline at end of file