Started adding security framework editor to frontend for better workflow documentation

This commit is contained in:
frikky
2021-12-13 04:22:05 +01:00
parent ac2d734113
commit d6c29ebc6d
8 changed files with 1602 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
import React, {useState} from 'react';
const FAQItem = (props) => {
const { question, answer } = props
const [isExpanded, setIsExpanded] = useState(false)
return (
<Paper onClick={() => {
setIsExpanded(!isExpanded)
}}>
<Typography variant="body1">
{question}
</Typography>
<Typography variant="body2" color="textSecondary">
{answer}
</Typography>
</Paper>
)
}
export default FAQItem;