Skip to content

Commit

Permalink
Update Link
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Sep 28, 2023
1 parent 7d3fd27 commit deb3c39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const ProjectActionArea = styled(CardActionArea, {

const ProjectCard = React.forwardRef(function ProjectCard(props, ref) {
const {
externalLink,
link: { href },
icon,
name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const ProjectTitle = styled(RichTypography, {
const ProjectPageHeader = React.forwardRef(
function ProjectPageHeader(props, ref) {
const {
externalLink,
externalLink: { href },
icon,
name,
subtitle,
Expand Down Expand Up @@ -133,8 +133,8 @@ const ProjectPageHeader = React.forwardRef(
</CardContent>
<CardActions sx={{ mt: 2, p: 0 }}>
<Button
href={externalLink}
component={externalLink ? Link : undefined}
href={href}
component={href ? Link : undefined}
endIcon={
<SvgIcon
component={ExternalLinkIcon}
Expand Down
4 changes: 2 additions & 2 deletions apps/codeforafrica/src/payload/collections/Projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Projects = {
{
name: "tagLine",
label: {
en: "Tag Line",
en: "Tagline",
},
type: "text",
},
Expand All @@ -52,7 +52,7 @@ const Projects = {
position: "sidebar",
},
}),
linkGroup({ overrides: { name: "externalLink", label: "External Link" } }),
linkGroup({ overrides: { name: "externalLink", label: "Link" } }),
image({
overrides: {
label: {
Expand Down

0 comments on commit deb3c39

Please sign in to comment.