Skip to content

Commit b9cf359

Browse files
committed
Change X to Feather Icon
1 parent 5831e2b commit b9cf359

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

src/components/GlobalFooter.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import clsx from "clsx";
22
import React from "react";
33
import { Link } from "gatsby";
4+
import { FaXTwitter } from "react-icons/fa6";
45
import ActionButton from "./ActionButton";
56
import Logo from "./Logo";
67

@@ -9,7 +10,7 @@ function FooterSection({
910
links,
1011
}: {
1112
title: string;
12-
links: { title: string; to: string }[];
13+
links: { title: string | JSX.Element; to: string }[];
1314
}) {
1415
return (
1516
<div>
@@ -74,7 +75,7 @@ export default function GlobalFooter({ className }: { className?: string }) {
7475
to: "https://first-programming.utcode.net/",
7576
},
7677
{ title: "GitHub", to: "https://github.com/ut-code" },
77-
{ title: "𝕏", to: "https://twitter.com/utokyo_code" },
78+
{ title: <FaXTwitter />, to: "https://twitter.com/utokyo_code" },
7879
]}
7980
/>
8081
</div>

src/pages/contact.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useEffect, useState } from "react";
22
import { StaticImage } from "gatsby-plugin-image";
3+
import { FaXTwitter } from "react-icons/fa6";
34
import GlobalFooter from "../components/GlobalFooter";
45
import GlobalHeader from "../components/GlobalHeader";
56
import CommonHead from "../components/CommonHead";
@@ -34,7 +35,7 @@ export default function ContactPage() {
3435
<p>ut.code(); へのお問い合わせは、各種 SNS をご利用ください。</p>
3536
<p className="not-prose flex gap-4">
3637
<ActionButton to="https://twitter.com/utokyo_code">
37-
𝕏 (旧 Twitter)
38+
<FaXTwitter /> (旧 Twitter)
3839
</ActionButton>
3940
<ActionButton to="https://line.me/ti/p/%40nlr3843e">
4041
LINE

src/pages/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
FiBox,
77
FiMessageSquare,
88
} from "react-icons/fi";
9+
import { FaXTwitter } from "react-icons/fa6";
910
import { StaticImage } from "gatsby-plugin-image";
1011
import GlobalHeader from "../components/GlobalHeader";
1112
import ActionButton from "../components/ActionButton";
@@ -188,7 +189,7 @@ export default function IndexPage({ data }: PageProps<Queries.IndexPageQuery>) {
188189
{ title: "構成人数", content: "20 名程度 (アクティブ)" },
189190
{ title: "部室", content: "駒場キャンパス学生会館 313B 教室" },
190191
{
191-
title: "𝕏",
192+
title: <FaXTwitter />,
192193
content: "@utokyo_code",
193194
link: "https://x.com/utokyo_code",
194195
},

src/templates/member.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import nullthrows from "nullthrows";
55
import Color from "color";
66
import clsx from "clsx";
77
import { FiGithub, FiGlobe } from "react-icons/fi";
8+
import { FaXTwitter } from "react-icons/fa6";
89
import GlobalHeader from "../components/GlobalHeader";
910
import GlobalFooter from "../components/GlobalFooter";
1011
import CommonHead from "../components/CommonHead";
@@ -66,9 +67,9 @@ export default function MemberPage({
6667
target="_blank"
6768
className={socialButtonClassName}
6869
rel="noreferrer"
69-
aria-label="𝕏 (旧 Twitter) を見る"
70+
aria-label="X (旧 Twitter) を見る"
7071
>
71-
𝕏
72+
<FaXTwitter />
7273
</a>
7374
)}
7475
{data.mdx?.frontmatter?.website && (

0 commit comments

Comments
 (0)