Skip to content

Commit

Permalink
update LinkedIn icon
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Jan 30, 2024
1 parent 4cc3c9e commit 07c2ba2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions public/images/linkedin-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/components/Blog/Socials/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XIcon from '@/public/images/x-icon.svg'
import LinkedinIcon from '@/public/images/linkedin-icon.svg'
import LinkedInIcon from '@/public/images/linkedin-icon.svg'
import { type Entry } from 'contentful'
import { type TypeAuthorSkeleton } from '@/contentful/types'
import { IconButton, SvgIcon } from '@mui/material'
Expand All @@ -24,7 +24,7 @@ const Socials = ({ title, authors }: { title: string; authors: Entry<TypeAuthorS
const xUrl = `https://twitter.com/intent/tweet?url=${encodeURIComponent(currentUrl)}&text=${encodeURIComponent(
sharingText,
)}`
const linkedinUrl = `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(currentUrl)}`
const linkedInUrl = `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(currentUrl)}`

return (
<div className={css.socials}>
Expand All @@ -33,9 +33,9 @@ const Socials = ({ title, authors }: { title: string; authors: Entry<TypeAuthorS
<SvgIcon component={XIcon} fontSize="inherit" color="inherit" inheritViewBox />
</IconButton>

{/* Linkedin */}
<IconButton aria-label="Share on Linkedin" href={linkedinUrl} target="_blank" rel="noreferrer" size="small">
<SvgIcon component={LinkedinIcon} fontSize="inherit" color="inherit" inheritViewBox />
{/* LinkedIn */}
<IconButton aria-label="Share on Linkedin" href={linkedInUrl} target="_blank" rel="noreferrer" size="small">
<SvgIcon component={LinkedInIcon} fontSize="inherit" color="inherit" inheritViewBox />
</IconButton>
</div>
)
Expand Down

0 comments on commit 07c2ba2

Please sign in to comment.