Skip to content

Commit 72a3c56

Browse files
committed
audit fix
1 parent afdd262 commit 72a3c56

File tree

3 files changed

+8450
-2447
lines changed

3 files changed

+8450
-2447
lines changed

components/ShareButton.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import styles from './styles/shareButton.module.scss'
44
import { name, siteUrl } from '../config/blog.config.json'
55

66
export default function ShareButton({slug, title}: { slug: string, title: string }) {
7+
const str: string = 5555;
78
const shareTitle = (title.length > 100) ? title.slice(0, 100) + '...' : title
89
const shareUrl = siteUrl + 'articles/' + slug
910
const twitterUrl = `https://twitter.com/intent/tweet?text=${shareTitle} | ${name}&url=\n${shareUrl}`

0 commit comments

Comments
 (0)