Skip to content

Commit

Permalink
feat: fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Ellison committed Jun 15, 2023
1 parent 45005dd commit f1b450d
Show file tree
Hide file tree
Showing 7 changed files with 337 additions and 227 deletions.
10 changes: 8 additions & 2 deletions components/compliance/ControlData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ function MethodCard({ method }) {
function MethodsList({ methods }) {
return (
<Box>
<Typography variant="h6">Methods</Typography>
<Typography variant="h4">Methods</Typography>
<Typography variant="body1">Technical or Audit/Manual methods in place to enforce the control</Typography>
<Box mt={2}>
{methods.map((method, index) => (
<MethodCard key={index} method={method} />
Expand All @@ -79,7 +80,10 @@ function MethodsList({ methods }) {


export function ControlDataDisplay({ data }) {
data = data[0].data

console.log('ControlDataDisplay:data: ', data)

data = data.data
return (
<Box>
<Typography variant="h4">{data?.name || 'N/A'}</Typography>
Expand All @@ -99,6 +103,8 @@ export function ControlDataDisplay({ data }) {
<Typography variant="body1">
<strong>Quality Model:</strong> {data?.quality_model || 'N/A'}
</Typography>

<Typography variant="h4">Frameworks</Typography>
{data?.frameworks?.map((framework, index) => (
<FrameworkSection key={index} framework={framework} />
))}
Expand Down
Loading

0 comments on commit f1b450d

Please sign in to comment.