|
|
|
@ -30,15 +30,17 @@ const CategoryLink: React.FC<CategoryProps> = (category) => {
|
|
|
|
|
<div className="category-text"> |
|
|
|
|
<ReactMarkdown>{category.content}</ReactMarkdown> |
|
|
|
|
</div> |
|
|
|
|
<button |
|
|
|
|
className="category-button" |
|
|
|
|
onClick={(e) => { |
|
|
|
|
e.preventDefault(); |
|
|
|
|
window.open(`${category.url}`, "_blank"); |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
<span>Zur Datenquelle</span> <ArrowForwardIcon /> |
|
|
|
|
</button> |
|
|
|
|
{category.url && ( |
|
|
|
|
<button |
|
|
|
|
className="category-button" |
|
|
|
|
onClick={(e) => { |
|
|
|
|
e.preventDefault(); |
|
|
|
|
window.open(`${category.url}`, "_blank"); |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
<span>Zur Datenquelle</span> <ArrowForwardIcon /> |
|
|
|
|
</button> |
|
|
|
|
)} |
|
|
|
|
</AccordionDetails> |
|
|
|
|
</Accordion> |
|
|
|
|
</div> |
|
|
|
|