-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update Twitter Icons to X Icons #794
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,5 +1,6 @@ | ||||||||||||||
import React from "react" | ||||||||||||||
import { FaDiscord, FaGithub, FaLinkedin, FaTwitter } from "react-icons/fa" | ||||||||||||||
import { FaDiscord, FaGithub, FaLinkedin } from "react-icons/fa" | ||||||||||||||
import { FaXTwitter } from "react-icons/fa6"; | ||||||||||||||
Check failure on line 3 in src/components/Footer.jsx GitHub Actions / Lint Before Release
|
||||||||||||||
|
||||||||||||||
function Footer() { | ||||||||||||||
return ( | ||||||||||||||
|
@@ -39,10 +40,10 @@ | |||||||||||||
target="_blank" | ||||||||||||||
> | ||||||||||||||
<span className="sr-only"> | ||||||||||||||
X | ||||||||||||||
Comment on lines
42
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The screen reader text "X" is not descriptive and does not convey the purpose of the link, which is not accessible. It should be updated to something more meaningful, like "Twitter Profile" to improve accessibility. - <span className="sr-only">
- X
- </span>
+ <span className="sr-only">
+ Twitter Profile
+ </span> Commitable suggestion
Suggested change
|
||||||||||||||
</span> | ||||||||||||||
|
||||||||||||||
<FaTwitter aria-hidden="true" /> | ||||||||||||||
<FaXTwitter aria-hidden="true" /> | ||||||||||||||
</a> | ||||||||||||||
|
||||||||||||||
<a | ||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -2,11 +2,11 @@ | |||||||||||||||||||||||||||||||||||||||||||
import { | ||||||||||||||||||||||||||||||||||||||||||||
FaBlog, | ||||||||||||||||||||||||||||||||||||||||||||
FaGithub, | ||||||||||||||||||||||||||||||||||||||||||||
FaTwitter, | ||||||||||||||||||||||||||||||||||||||||||||
FaYoutube, | ||||||||||||||||||||||||||||||||||||||||||||
FaTwitch, | ||||||||||||||||||||||||||||||||||||||||||||
FaLinkedin, | ||||||||||||||||||||||||||||||||||||||||||||
} from "react-icons/fa" | ||||||||||||||||||||||||||||||||||||||||||||
import { FaXTwitter } from "react-icons/fa6"; | ||||||||||||||||||||||||||||||||||||||||||||
Check failure on line 9 in src/components/ProfileCard.jsx GitHub Actions / Lint Before Release
|
||||||||||||||||||||||||||||||||||||||||||||
import SocialLink from "components/SocialLink" | ||||||||||||||||||||||||||||||||||||||||||||
import Image from "next/image" | ||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The import statements have been updated to include the new - import { FaBlog, FaGithub, FaYoutube, FaTwitch, FaLinkedin, FaTwitter } from "react-icons/fa"
+ import { FaBlog, FaGithub, FaYoutube, FaTwitch, FaLinkedin } from "react-icons/fa"
+ import { FaXTwitter } from "react-icons/fa6"; Commitable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
|
@@ -17,7 +17,7 @@ | |||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||
twitter: { | ||||||||||||||||||||||||||||||||||||||||||||
url: "https://twitter.com/", | ||||||||||||||||||||||||||||||||||||||||||||
icon: FaTwitter, | ||||||||||||||||||||||||||||||||||||||||||||
icon: FaXTwitter, | ||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||
blog: { | ||||||||||||||||||||||||||||||||||||||||||||
icon: FaBlog, | ||||||||||||||||||||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,4 +1,5 @@ | ||||||
import { FaDiscord, FaTwitter } from "react-icons/fa" | ||||||
import { FaDiscord } from "react-icons/fa" | ||||||
import { FaXTwitter } from "react-icons/fa6"; | ||||||
Check failure on line 2 in src/data/homepage.js GitHub Actions / Lint Before Release
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The import statement for - import { FaXTwitter } from "react-icons/fa6";
+ import { FaXTwitter } from "react-icons/fa"; Commitable suggestion
Suggested change
|
||||||
import "react-toastify/dist/ReactToastify.css" | ||||||
|
||||||
export const main = { | ||||||
|
@@ -53,8 +54,8 @@ | |||||
className="btn btn-twitter" | ||||||
target="_blank" rel="noreferrer" | ||||||
> | ||||||
<FaTwitter /> | ||||||
X | ||||||
<FaXTwitter /> | ||||||
X (Twitter) | ||||||
</a> | ||||||
), | ||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import statement for
FaXTwitter
seems to be importing from a non-standard path"react-icons/fa6"
. Verify that this is the correct path and that theFaXTwitter
icon is indeed located there. If not, correct the import path to match the location ofFaXTwitter
in thereact-icons
package.Commitable suggestion