Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSh committed May 16, 2022
1 parent 61ae132 commit 1215bfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ type Accordion = Pick<EuiAccordionProps, 'title' | 'id' | 'initialIsOpen'> &
Pick<EuiDescriptionListProps, 'listItems'>;

const getDetailsList = (data: CspFinding) => [
{
title: TEXT.RULE_NAME,
description: data.rule.name,
},
{
title: TEXT.EVALUATED_AT,
description: moment(data['@timestamp']).format('MMMM D, YYYY @ HH:mm:ss.SSS'),
Expand All @@ -36,10 +40,6 @@ const getDetailsList = (data: CspFinding) => [
title: TEXT.RESOURCE_NAME,
description: data.resource.name,
},
{
title: TEXT.RULE_NAME,
description: data.rule.name,
},
{
title: TEXT.FRAMEWORK_SOURCES,
description: (
Expand Down Expand Up @@ -127,7 +127,7 @@ export const OverviewTab = ({ data }: { data: CspFinding }) => {
<strong>{accordion.title}</strong>
</EuiText>
}
arrowDisplay="right"
arrowDisplay="left"
initialIsOpen={accordion.initialIsOpen}
>
<EuiSpacer size="m" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const ResourceTab = ({ data }: { data: CspFinding }) => {
<strong>{accordion.title}</strong>
</EuiText>
}
arrowDisplay="right"
arrowDisplay="left"
initialIsOpen
>
<EuiDescriptionList
Expand Down

0 comments on commit 1215bfa

Please sign in to comment.