Skip to content

Commit 9094a16

Browse files
committed
余計な変数の削除
1 parent 72a3c56 commit 9094a16

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

components/ShareButton.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ 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;
87
const shareTitle = (title.length > 100) ? title.slice(0, 100) + '...' : title
98
const shareUrl = siteUrl + 'articles/' + slug
109
const twitterUrl = `https://twitter.com/intent/tweet?text=${shareTitle} | ${name}&url=\n${shareUrl}`

0 commit comments

Comments
 (0)