♻️ refactor(projects): add modular external link

This commit is contained in:
2024-03-25 09:50:39 +01:00
parent bd60fcf38e
commit cb2a269411
3 changed files with 6 additions and 6 deletions
@@ -1,6 +1,6 @@
import React from 'react'
import { Box, SxProps, Theme, Typography, TypographyProps } from '@mui/material'
import { ExtrernalIconLink } from '..'
import { ExternalIconLink } from '..'
type AwardEntryProps = {
year: string | number
@@ -26,9 +26,7 @@ const Publication = ({ Component = Box, ...props }: AwardEntryProps) => {
<b>{props.title}</b>
</Typography>
, In: {props.location}
{typeof props.link !== 'undefined' && (
<ExtrernalIconLink size="small" fontSize="small" href={props.link} sx={{ color: 'text.secondary' }} />
)}
{typeof props.link !== 'undefined' && <ExternalIconLink size="small" fontSize="small" href={props.link} sx={{ color: 'text.secondary' }} />}
</Typography>
</Box>
</Component>