Skip to content
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

Merged
merged 3 commits into from
Nov 18, 2023
Merged

Conversation

tobySolutions
Copy link
Collaborator

@tobySolutions tobySolutions commented Nov 18, 2023

I updated the Twitter icons of the hero section, footer and the active members and staff pages

Screenshot 2023-11-18 at 12 57 02

Summary by CodeRabbit

  • Style Updates

    • Updated social media icons across various components to use the new FaXTwitter icon.
  • Documentation

    • Adjusted .gitignore settings for better file management.
  • Bug Fixes

    • Ensured consistent use of the FaXTwitter icon in the Footer and ProfileCard components, as well as in the homepage data.

Copy link

vercel bot commented Nov 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
4c-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 18, 2023 0:01am

Copy link

coderabbitai bot commented Nov 18, 2023

Walkthrough

The recent updates across various files in the codebase involve replacing the FaTwitter icon with a new FaXTwitter icon from the react-icons library. This change has been consistently applied to components and data files where the Twitter icon is used, indicating a rebranding or a design update for the Twitter-related UI elements.

Changes

File Path Change Summary
.husky/_/.gitignore Added a line with an asterisk (*) character.
src/components/Footer.jsx
src/components/ProfileCard.jsx
Replaced FaTwitter import and usage with FaXTwitter from react-icons/fa or react-icons/fa6.
src/data/homepage.js Updated Twitter button JSX to use FaXTwitter icon and added text "(Twitter)".

🐇 In the code, there's been a switch, 🔄
From the Twitter icon, we've made a stitch. 🧵
As leaves fall in November's cool weather, 🍂
Our code hops along, light as a feather. 🍃


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 4

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 9a4cc1d and a0eb62c.
Files ignored due to filter (2)
  • package.json
  • yarn.lock
Files selected for processing (4)
  • .husky/_/.gitignore (1 hunks)
  • src/components/Footer.jsx (2 hunks)
  • src/components/ProfileCard.jsx (2 hunks)
  • src/data/homepage.js (2 hunks)
Files skipped from review due to trivial changes (1)
  • .husky/_/.gitignore
Additional comments: 2
src/data/homepage.js (1)
  • 54-60: The update to the Twitter link is consistent with the pull request's intent to replace the Twitter icon with a new one. The addition of the text "(Twitter)" next to the icon is a good practice for accessibility, as it provides a text alternative for the icon. However, ensure that the styling of the button remains consistent with the rest of the design and that the added text does not disrupt the layout or styling.
src/components/ProfileCard.jsx (1)
  • 17-23: The change correctly updates the Twitter icon to FaXTwitter within the socialMediaData structure. This will ensure that the new Twitter icon is used wherever the socialMediaData is referenced for rendering social media links.

@@ -1,4 +1,5 @@
import { FaDiscord, FaTwitter } from "react-icons/fa"
import { FaDiscord } from "react-icons/fa"
import { FaXTwitter } from "react-icons/fa6";
Copy link

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 "react-icons/fa6" which might be a typo or incorrect module name. Typically, the react-icons package does not version its icon sets in this manner. The correct import should be from "react-icons/fa", unless the package structure has changed after my last update. Please verify the correct import path.

- import { FaXTwitter } from "react-icons/fa6";
+ import { FaXTwitter } from "react-icons/fa";

Commitable suggestion

[!IMPORTANT]
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
import { FaXTwitter } from "react-icons/fa6";
import { FaXTwitter } from "react-icons/fa";

@@ -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";
Copy link

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 the FaXTwitter icon is indeed located there. If not, correct the import path to match the location of FaXTwitter in the react-icons package.

- import { FaXTwitter } from "react-icons/fa6";
+ import { FaXTwitter } from "react-icons/fa";

Commitable suggestion

[!IMPORTANT]
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
import { FaXTwitter } from "react-icons/fa6";
import { FaXTwitter } from "react-icons/fa";

Comment on lines 2 to 11
import {
FaBlog,
FaGithub,
FaTwitter,
FaYoutube,
FaTwitch,
FaLinkedin,
} from "react-icons/fa"
import { FaXTwitter } from "react-icons/fa6";
import SocialLink from "components/SocialLink"
import Image from "next/image"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import statements have been updated to include the new FaXTwitter icon from the react-icons/fa6 package. However, the import from react-icons/fa does not remove FaTwitter, which should be cleaned up if it's no longer used in the component to avoid importing unused icons.

- 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

[!IMPORTANT]
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
import {
FaBlog,
FaGithub,
FaTwitter,
FaYoutube,
FaTwitch,
FaLinkedin,
} from "react-icons/fa"
import { FaXTwitter } from "react-icons/fa6";
import SocialLink from "components/SocialLink"
import Image from "next/image"
import {
FaBlog,
FaGithub,
FaYoutube,
FaTwitch,
FaLinkedin,
} from "react-icons/fa"
import { FaXTwitter } from "react-icons/fa6";
import SocialLink from "components/SocialLink"
import Image from "next/image"

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between a0eb62c and 78c0af6.
Files selected for processing (3)
  • src/components/Footer.jsx (2 hunks)
  • src/components/ProfileCard.jsx (2 hunks)
  • src/data/homepage.js (2 hunks)
Additional comments: 5
src/components/Footer.jsx (1)
  • 3-3: The import from react-icons/fa6 might indicate a major version change or a different icon set. Verify that FaXTwitter is correctly imported from the intended package and that all instances of the icon in the project have been updated accordingly.
src/data/homepage.js (2)
  • 1-3: The import statement for FaXTwitter is referencing a different package or version (react-icons/fa6 instead of react-icons/fa). Verify that this is intentional and that the fa6 version is compatible with the rest of the project. If fa6 is a major version update, ensure that there are no breaking changes that could affect other icons or components.

  • 54-59: The text "X (Twitter)" next to the FaXTwitter icon may be a placeholder. Confirm that this is the desired text to display next to the icon. If "X" is not intended to be part of the final content, it should be removed.

src/components/ProfileCard.jsx (2)
  • 2-11: The import changes reflect the update from FaTwitter to FaXTwitter. Ensure that the FaXTwitter icon is correctly exported from the react-icons/fa6 package and that this package version is installed in the project.

  • 17-23: The twitter object within socialMediaData has been updated to use the new FaXTwitter icon. This change should be cross-verified with the UI to ensure that the FaXTwitter icon renders correctly and matches the intended design specifications.

Comment on lines 42 to +43
<span className="sr-only">
Twitter
X
Copy link

Choose a reason for hiding this comment

The 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

[!IMPORTANT]
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
<span className="sr-only">
Twitter
X
<span className="sr-only">
Twitter Profile
</span>

@tobySolutions tobySolutions merged commit f21a0e4 into main Nov 18, 2023
5 checks passed
Copy link
Contributor

🎉 This PR is included in version 0.21.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant