♻️ refactor(projects): add modular external link
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user