Skip to content

Commit

Permalink
👍 Twitterシェアをしぇあ.comに置き換え
Browse files Browse the repository at this point in the history
  • Loading branch information
arrow2nd committed Dec 28, 2023
1 parent 3e7e5e2 commit 1b62c9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/poems/card/buttons/tweet.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
"use client";

import { FiTwitter } from "react-icons/fi";
import { FiShare2 } from "react-icons/fi";

type Props = {
text: string;
};

const TweetButton = ({ text }: Props) => {
const encodedText = encodeURIComponent(text);
const tweetUrl = `https://twitter.com/intent/tweet?text=${encodedText}`;
const tweetUrl = `https://しぇあ.com?text=${encodedText}`;

return (
<a
className="text-xl transition-colors hover:text-black"
title="ツイートする"
title="シェアする"
href={tweetUrl}
target="_blank"
rel="noopener noreferrer"
>
<FiTwitter />
<FiShare2 />
</a>
);
};
Expand Down

0 comments on commit 1b62c9a

Please sign in to comment.