Skip to content

Commit

Permalink
Merge pull request #699 from AFP-Medialab/jmafoster1/231-missing-url-…
Browse files Browse the repository at this point in the history
…information

Jmafoster1/231 missing url information
  • Loading branch information
Sallaa authored Feb 4, 2025
2 parents 1daeeab + d985b4b commit 42bfd42
Showing 1 changed file with 13 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,40 +200,19 @@ const ExtractedSourceCredibilityDBKFDialog = ({
? sourceCredibilityResults.map((value, key) => (
<Accordion key={key}>
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
{value.credibilityScope &&
value.credibilityScope.includes("/") ? (
<Stack direction="row">
<Chip
label={keyword(sourceType)}
color={trafficLightColor}
size="small"
/>
<Typography
sx={{ ml: 1 }}
//color={trafficLightColor}
>
{` ${keyword("this")}`}
{getUrlTypeFromCredScope(
value.credibilityScope,
)}
{` ${keyword("source_credibility_warning_account")} ${" "}${value.credibilitySource}`}
</Typography>
</Stack>
) : value.credibilityScope ? (
<Stack direction="row">
<Chip
label={keyword(sourceType)}
color={trafficLightColor}
size="small"
/>
<Typography
sx={{ ml: 1 }}
//color={trafficLightColor}
>
{` ${keyword("source_credibility_warning_domain")} ${value.credibilitySource} `}
</Typography>
</Stack>
) : null}
<Stack direction="row">
<Chip
label={keyword(sourceType)}
color={trafficLightColor}
size="small"
/>
<Typography sx={{ ml: 1 }}>
{value.credibilityScope &&
value.credibilityScope.includes("/")
? ` ${keyword("this")} ${getUrlTypeFromCredScope(value.credibilityScope)} ${keyword("source_credibility_warning_account")} ${" "}${value.credibilitySource}`
: ` ${keyword("source_credibility_warning_domain")} ${value.credibilitySource} `}
</Typography>
</Stack>
</AccordionSummary>

<AccordionDetails>
Expand Down

0 comments on commit 42bfd42

Please sign in to comment.