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

I fix issue of icon #3816

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

I fix issue of icon #3816

wants to merge 5 commits into from

Conversation

Aditya90456
Copy link

@Aditya90456 Aditya90456 commented Mar 6, 2025

Uploading IconLinkedIn Component Implementation and 9 more pages - Personal - Microsoft​ Edge 3_6_2025 12_17_14 PM.png…

Summary by CodeRabbit

  • Chores

    • Updated project dependencies to enhance library support.
  • New Features

    • Enhanced the community ambassadors' interface by dynamically displaying social media icons (Github, Linkedin, Twitter) only when the corresponding links are available, resulting in a cleaner, more intuitive experience for users.
    • Added new dependencies for improved functionality and visual presentation.

Copy link
Contributor

coderabbitai bot commented Mar 6, 2025

Walkthrough

The changes update the project's dependencies and improve the ambassadors page. In package.json, new dependencies are added, and the React version is bumped. In the ambassadors component, new icon imports from lucide-react replace static social media links. The component now conditionally renders GitHub, LinkedIn, and Twitter icons only if the respective URL is provided, enhancing the interface's clarity and robustness.

Changes

File Changes
package.json Added "lucide-react": "^0.477.0", added "react-feather": "^2.0.10", and updated "react" from "^18" to "^18.3.1".
pages/community/ambassadors/index.tsx Added new import of { Github, Linkedin, Twitter } from lucide-react; replaced static social links with conditionally rendered icons based on URL availability.

Sequence Diagram(s)

sequenceDiagram
    participant U as User
    participant A as AmbassadorsComponent
    participant D as SocialMediaData

    U->>A: Navigate to ambassadors page
    A->>D: Request social media URLs
    alt URL exists
        D-->>A: Return URL data
        A->>A: Render icon (Github/Linkedin/Twitter)
    else URL missing
        D-->>A: Return missing flag
        A->>A: Skip rendering for this platform
    end
    A->>U: Display updated social links
Loading

Possibly related PRs

Suggested reviewers

  • derberg
  • devilkiller-ag
  • akshatnema
  • sambhavgupta0705
  • anshgoyalevil
  • asyncapi-bot-eve
  • Mayaleeeee

Poem

I'm a bunny, hopping through the code,
With icons that gleam like a vibrant abode.
React and new tools make my heart sing,
Conditional links add a refreshing zing.
Dependencies updated, my whiskers twitch with cheer,
Here's to clearer code and a bright new frontier!
🐰🚀


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b93e564 and 054520d.

📒 Files selected for processing (1)
  • pages/community/ambassadors/index.tsx (2 hunks)
🧰 Additional context used
🪛 ESLint
pages/community/ambassadors/index.tsx

[error] 2-2: Trailing spaces not allowed.

(no-trailing-spaces)


[error] 2-2: Delete ·

(prettier/prettier)


[error] 143-143: Delete ·······

(prettier/prettier)


[error] 144-144: Insert ················

(prettier/prettier)


[error] 145-145: Replace ····<a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 146-146: Insert ················

(prettier/prettier)


[error] 147-147: Insert ················

(prettier/prettier)


[error] 148-148: Insert ················

(prettier/prettier)


[error] 149-149: Insert ················

(prettier/prettier)


[error] 150-150: Insert ················

(prettier/prettier)


[error] 151-151: Replace <a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 152-152: Insert ················

(prettier/prettier)


[error] 153-153: Insert ················

(prettier/prettier)


[error] 154-154: Insert ················

(prettier/prettier)


[error] 155-155: Insert ················

(prettier/prettier)


[error] 156-156: Insert ················

(prettier/prettier)


[error] 157-157: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 158-158: Insert ················

(prettier/prettier)


[error] 159-159: Insert ················

(prettier/prettier)


[error] 160-160: Insert ················

(prettier/prettier)


[error] 161-161: Insert ················

(prettier/prettier)


[error] 162-164: Replace </div>⏎⏎ with ················</div>

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project
pages/community/ambassadors/index.tsx

[error] 1-1: Run autofix to sort these imports! simple-import-sort/imports


[error] 2-2: Trailing spaces not allowed. no-trailing-spaces


[error] 2-2: Delete · prettier/prettier


[error] 143-143: Delete ······· prettier/prettier


[error] 144-144: Insert ················ prettier/prettier


[error] 145-145: Replace ····<a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 145-145: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 146-146: Insert ················ prettier/prettier


[error] 147-147: Insert ················ prettier/prettier


[error] 148-148: Insert ················ prettier/prettier


[error] 149-149: Insert ················ prettier/prettier


[error] 150-150: Insert ················ prettier/prettier


[error] 151-151: Replace <a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 151-151: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 152-152: Insert ················ prettier/prettier


[error] 153-153: Insert ················ prettier/prettier


[error] 154-154: Insert ················ prettier/prettier


[error] 155-155: Insert ················ prettier/prettier


[error] 156-156: Insert ················ prettier/prettier


[error] 157-157: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 157-157: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 158-158: Insert ················ prettier/prettier


[error] 159-159: Insert ················ prettier/prettier


[error] 160-160: Insert ················ prettier/prettier


[error] 161-161: Insert ················ prettier/prettier


[error] 162-162: Replace </div>⏎⏎ with ················</div> prettier/prettier


[error] 164-164: More than 1 blank line not allowed. no-multiple-empty-lines

🔇 Additional comments (4)
pages/community/ambassadors/index.tsx (4)

2-3: Fix import order and trailing whitespace.

The import statements need to be sorted according to the project's guidelines and there's a trailing whitespace after 'next/link'.

import { sortBy } from 'lodash';
-import Link from 'next/link'; 
-import { Github, Linkedin, Twitter } from 'lucide-react';
+import Link from 'next/link';
+import { Github, Linkedin, Twitter } from 'lucide-react';
🧰 Tools
🪛 ESLint

[error] 2-2: Trailing spaces not allowed.

(no-trailing-spaces)


[error] 2-2: Delete ·

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 2-2: Trailing spaces not allowed. no-trailing-spaces


[error] 2-2: Delete · prettier/prettier


143-162: Fix formatting issues and correct Tailwind class order.

The conditional rendering of social media links is a good improvement, but the formatting and Tailwind class order need to be fixed to pass the pipeline checks.

-                       <div className='flex border-t p-2' data-testid='Ambassadors-members-socials'>
-  {ambassador.twitterUrl && (
-    <a href={ambassador.twitterUrl} target='_blank' rel='noreferrer' className='underline flex items-center gap-1'>
-      <Twitter size={16} className='text-blue-400' />
-      Twitter
-    </a>
-  )}
-  {ambassador.githubUrl && (
-    <a href={ambassador.githubUrl} target='_blank' rel='noreferrer' className='ml-3 underline flex items-center gap-1'>
-      <Github size={16} className='text-gray-700' />
-      Github
-    </a>
-  )}
-  {ambassador.linkedinUrl && (
-    <a href={ambassador.linkedinUrl} target='_blank' rel='noreferrer' className='ml-3 underline flex items-center gap-1'>
-      <Linkedin size={16} className='text-blue-600' />
-      Linkedin
-    </a>
-  )}
-</div>
+                <div className='flex border-t p-2' data-testid='Ambassadors-members-socials'>
+                  {ambassador.twitterUrl && (
+                    <a
+                      href={ambassador.twitterUrl}
+                      target='_blank'
+                      rel='noreferrer'
+                      className='flex items-center gap-1 underline'
+                    >
+                      <Twitter size={16} className='text-blue-400' />
+                      Twitter
+                    </a>
+                  )}
+                  {ambassador.githubUrl && (
+                    <a
+                      href={ambassador.githubUrl}
+                      target='_blank'
+                      rel='noreferrer'
+                      className='ml-3 flex items-center gap-1 underline'
+                    >
+                      <Github size={16} className='text-gray-700' />
+                      Github
+                    </a>
+                  )}
+                  {ambassador.linkedinUrl && (
+                    <a
+                      href={ambassador.linkedinUrl}
+                      target='_blank'
+                      rel='noreferrer'
+                      className='ml-3 flex items-center gap-1 underline'
+                    >
+                      <Linkedin size={16} className='text-blue-600' />
+                      Linkedin
+                    </a>
+                  )}
+                </div>
🧰 Tools
🪛 ESLint

[error] 143-143: Delete ·······

(prettier/prettier)


[error] 144-144: Insert ················

(prettier/prettier)


[error] 145-145: Replace ····<a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 146-146: Insert ················

(prettier/prettier)


[error] 147-147: Insert ················

(prettier/prettier)


[error] 148-148: Insert ················

(prettier/prettier)


[error] 149-149: Insert ················

(prettier/prettier)


[error] 150-150: Insert ················

(prettier/prettier)


[error] 151-151: Replace <a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 152-152: Insert ················

(prettier/prettier)


[error] 153-153: Insert ················

(prettier/prettier)


[error] 154-154: Insert ················

(prettier/prettier)


[error] 155-155: Insert ················

(prettier/prettier)


[error] 156-156: Insert ················

(prettier/prettier)


[error] 157-157: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 158-158: Insert ················

(prettier/prettier)


[error] 159-159: Insert ················

(prettier/prettier)


[error] 160-160: Insert ················

(prettier/prettier)


[error] 161-161: Insert ················

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 143-143: Delete ······· prettier/prettier


[error] 144-144: Insert ················ prettier/prettier


[error] 145-145: Replace ····<a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 145-145: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 146-146: Insert ················ prettier/prettier


[error] 147-147: Insert ················ prettier/prettier


[error] 148-148: Insert ················ prettier/prettier


[error] 149-149: Insert ················ prettier/prettier


[error] 150-150: Insert ················ prettier/prettier


[error] 151-151: Replace <a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 151-151: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 152-152: Insert ················ prettier/prettier


[error] 153-153: Insert ················ prettier/prettier


[error] 154-154: Insert ················ prettier/prettier


[error] 155-155: Insert ················ prettier/prettier


[error] 156-156: Insert ················ prettier/prettier


[error] 157-157: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 157-157: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 158-158: Insert ················ prettier/prettier


[error] 159-159: Insert ················ prettier/prettier


[error] 160-160: Insert ················ prettier/prettier


[error] 161-161: Insert ················ prettier/prettier


[error] 162-162: Replace </div>⏎⏎ with ················</div> prettier/prettier


163-164: Remove extra blank lines.

The pipeline is failing due to extra blank lines.

-

-
🧰 Tools
🪛 ESLint

[error] 162-164: Replace </div>⏎⏎ with ················</div>

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 164-164: More than 1 blank line not allowed. no-multiple-empty-lines


143-162: Great addition of social media icons!

The conditional rendering of social links with icons is a good improvement - it ensures links are only shown when URLs are available, and the icons make the links more visually appealing and recognizable.

🧰 Tools
🪛 ESLint

[error] 143-143: Delete ·······

(prettier/prettier)


[error] 144-144: Insert ················

(prettier/prettier)


[error] 145-145: Replace ····<a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 146-146: Insert ················

(prettier/prettier)


[error] 147-147: Insert ················

(prettier/prettier)


[error] 148-148: Insert ················

(prettier/prettier)


[error] 149-149: Insert ················

(prettier/prettier)


[error] 150-150: Insert ················

(prettier/prettier)


[error] 151-151: Replace <a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 152-152: Insert ················

(prettier/prettier)


[error] 153-153: Insert ················

(prettier/prettier)


[error] 154-154: Insert ················

(prettier/prettier)


[error] 155-155: Insert ················

(prettier/prettier)


[error] 156-156: Insert ················

(prettier/prettier)


[error] 157-157: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 158-158: Insert ················

(prettier/prettier)


[error] 159-159: Insert ················

(prettier/prettier)


[error] 160-160: Insert ················

(prettier/prettier)


[error] 161-161: Insert ················

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 143-143: Delete ······· prettier/prettier


[error] 144-144: Insert ················ prettier/prettier


[error] 145-145: Replace ····<a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 145-145: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 146-146: Insert ················ prettier/prettier


[error] 147-147: Insert ················ prettier/prettier


[error] 148-148: Insert ················ prettier/prettier


[error] 149-149: Insert ················ prettier/prettier


[error] 150-150: Insert ················ prettier/prettier


[error] 151-151: Replace <a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 151-151: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 152-152: Insert ················ prettier/prettier


[error] 153-153: Insert ················ prettier/prettier


[error] 154-154: Insert ················ prettier/prettier


[error] 155-155: Insert ················ prettier/prettier


[error] 156-156: Insert ················ prettier/prettier


[error] 157-157: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 157-157: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 158-158: Insert ················ prettier/prettier


[error] 159-159: Insert ················ prettier/prettier


[error] 160-160: Insert ················ prettier/prettier


[error] 161-161: Insert ················ prettier/prettier


[error] 162-162: Replace </div>⏎⏎ with ················</div> prettier/prettier

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Mar 6, 2025

We require all PRs to follow Conventional Commits specification.
More details 👇🏼

 No release type found in pull request title "I fix issue of icon ". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

Copy link

netlify bot commented Mar 6, 2025

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 054520d
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/67c9b9d52160050008ca52da
😎 Deploy Preview https://deploy-preview-3816--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@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.

Actionable comments posted: 3

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d6a213a and 8f3c1fd.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • package.json (2 hunks)
  • pages/community/ambassadors/index.tsx (2 hunks)
🧰 Additional context used
🪛 ESLint
pages/community/ambassadors/index.tsx

[error] 144-144: Insert ·

(prettier/prettier)


[error] 145-145: Insert ················

(prettier/prettier)


[error] 146-146: Replace <a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 147-147: Insert ················

(prettier/prettier)


[error] 148-148: Insert ················

(prettier/prettier)


[error] 149-149: Insert ················

(prettier/prettier)


[error] 150-150: Insert ················

(prettier/prettier)


[error] 151-151: Insert ················

(prettier/prettier)


[error] 152-152: Replace ····<a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 153-153: Insert ················

(prettier/prettier)


[error] 154-154: Insert ················

(prettier/prettier)


[error] 155-155: Insert ················

(prettier/prettier)


[error] 156-156: Insert ················

(prettier/prettier)


[error] 157-157: Insert ················

(prettier/prettier)


[error] 158-158: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 159-159: Insert ················

(prettier/prettier)


[error] 160-160: Insert ················

(prettier/prettier)


[error] 161-161: Insert ················

(prettier/prettier)


[error] 162-162: Insert ················

(prettier/prettier)


[error] 163-165: Replace </div>⏎⏎ with ················</div>

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project
pages/community/ambassadors/index.tsx

[error] 1-1: Run autofix to sort these imports! simple-import-sort/imports


[error] 144-144: Insert · prettier/prettier


[error] 145-145: Insert ················ prettier/prettier


[error] 146-146: Replace <a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 146-146: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 147-147: Insert ················ prettier/prettier


[error] 148-148: Insert ················ prettier/prettier


[error] 149-149: Insert ················ prettier/prettier


[error] 150-150: Insert ················ prettier/prettier


[error] 151-151: Insert ················ prettier/prettier


[error] 152-152: Replace ····<a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 152-152: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 153-153: Insert ················ prettier/prettier


[error] 154-154: Insert ················ prettier/prettier


[error] 155-155: Insert ················ prettier/prettier


[error] 156-156: Insert ················ prettier/prettier


[error] 157-157: Insert ················ prettier/prettier


[error] 158-158: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 158-158: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 159-159: Insert ················ prettier/prettier


[error] 160-160: Insert ················ prettier/prettier


[error] 161-161: Insert ················ prettier/prettier


[error] 162-162: Replace </div>⏎⏎ with ················</div> prettier/prettier


[error] 165-165: More than 1 blank line not allowed. no-multiple-empty-lines

⏰ Context from checks skipped due to timeout of 180000ms (4)
  • GitHub Check: Redirect rules - asyncapi-website
  • GitHub Check: Header rules - asyncapi-website
  • GitHub Check: Pages changed - asyncapi-website
  • GitHub Check: Lighthouse CI
🔇 Additional comments (5)
package.json (3)

84-84: Good addition of the lucide-react library.

This addition enables the use of modern React icon components in the project, which are being utilized in the ambassadors page.


98-98:

✅ Verification successful

Verify React version compatibility.

The React version has been updated to ^18.3.1 which is a very recent release. Ensure this version is compatible with all other dependencies in the project.


🌐 Web query:

Is React 18.3.1 stable and what are the compatibility considerations?

💡 Result:

React 18.3.1 is a stable release that introduces warnings for deprecated APIs ahead of React 19 while maintaining backward compatibility for most applications. Here's a breakdown of its stability and compatibility considerations:

Stability

  • Production-ready: The version is marked for production use, with performance optimizations and stripped error messages in production builds[7][10].
  • Deprecation warnings: It adds warnings for APIs like findDOMNode, string refs, and defaultProps in function components, helping developers prepare for React 19[1][8].
  • Server Components: Features like React Server Components (RSC) and associated directives are now stable[1].

Compatibility Considerations

  1. Third-party Libraries

    • Testing libraries like react-testing-library require updates to support React 18.3.1[9].
    • CSS-in-JS libraries may need to adopt useInsertionEffect for optimal performance[2][4].
  2. Tooling Issues

    • Vite users reported React DOM compatibility errors when using Remix, requiring either configuration adjustments or temporary downgrades to 18.2[6].
    • TypeScript users must update @types/react and @types/react-dom to match 18.3.1's stricter type definitions[2].
  3. Upgrade Path

    • Recommended as preparation for React 19 migration[8].
    • No significant bundle size or performance regressions compared to 18.2 based on community benchmarks[5].
  4. Deprecated APIs

    • react-dom/test-utils methods are being phased out in favor of @testing-library alternatives[8].
    • Legacy context API and string refs now trigger warnings in non-StrictMode environments[1].

For most projects, upgrading to 18.3.1 is safe and recommended. However, teams using bleeding-edge tools like Vite or specific React Native architectures should verify compatibility before deploying[6][4]. The release serves as a stable bridge between React 18's concurrent features and the upcoming React 19 changes[8][10].

Citations:


React 18.3.1 Update Verified – Compatibility Checks Recommended

The React version update to "^18.3.1" in package.json has been verified as a stable, production-ready release. It introduces deprecation warnings for certain APIs (such as findDOMNode and string refs) to guide future changes in React 19. However, ensure that:

  • Third-party libraries (e.g., testing libraries like react-testing-library) are updated and compatible with this release.
  • TypeScript definitions (@types/react and @types/react-dom) are aligned with React 18.3.1 if your project uses TypeScript.
  • Build tool configurations (like those in Vite/Remix setups) are adjusted if necessary to address any potential compatibility issues.

No immediate changes are required on this update, but please review your project's dependencies to confirm that they fully support React 18.3.1.


100-100:

✅ Verification successful

Unused dependency added.

The react-feather package appears to be added but not used in the codebase. The social media icons are being imported from lucide-react instead.


🏁 Script executed:

#!/bin/bash
# Check if react-feather is used anywhere in the codebase
echo "Searching for react-feather imports..."
rg -l "from ['|\"]react-feather" --type tsx --type jsx --type ts --type js

Length of output: 193


Please run the above script to verify if there are any occurrences of "react-feather" being imported anywhere in the codebase. The previous script failed due to an unrecognized file type for "tsx". Once you've confirmed that no imports exist (i.e. the search returns no files), you can safely conclude that the dependency is unused.


**Action: Consider Removing Unused Dependency**

The `react-feather` package, listed in `package.json` at line 100, appears to be unused in the codebase. All social media icons are imported from `lucide-react`, and a repository-wide search (after excluding file type filters) should confirm that no files import `react-feather`. Please verify with the updated search script above; if no occurrences are found, remove the dependency from `package.json` to keep the project clean.



---

🏁 Script executed:

```shell

#!/bin/bash
echo "Performing a repository-wide search for 'react-feather' (ignoring file type filters)..."
rg -l "from ['\"]react-feather" .

Length of output: 350


Manual Check Recommended: Unused Dependency

The dependency react-feather is declared in package.json (line 100) but does not appear to be used anywhere in the codebase—the social media icons are imported from lucide-react. Because the initial automated search yielded no output (and had an error stemming from the `` annotation), please run the corrected command above to manually confirm that there are no references to react-feather. If the command returns no matches, safely remove the dependency to keep the project clean.


🏁 Script executed:

#!/bin/bash
# Please run this script manually (without the  annotation) to re-verify:
echo "Searching the repository for any reference to 'react-feather'..."
rg -il "react-feather" .

Length of output: 204


Action: Remove Unused Dependency "react-feather"

The dependency "react-feather" is declared in package.json at line 100, but a repository-wide search confirms that it isn’t imported in any of the code files, as all social media icons are instead imported from "lucide-react". The only references to "react-feather" are its declarations in package.json and package-lock.json. Please remove the unused dependency to clean up the project.

pages/community/ambassadors/index.tsx (2)

4-4: Good use of modern icon components.

The imported icon components from lucide-react will provide a more consistent and maintainable approach to rendering social icons.


144-163: Good improvement on conditional social links rendering.

The conditional rendering of social media links is a good improvement as it ensures links are only displayed when the user has provided corresponding URLs. This enhances the user experience by preventing empty or broken links.

🧰 Tools
🪛 ESLint

[error] 144-144: Insert ·

(prettier/prettier)


[error] 145-145: Insert ················

(prettier/prettier)


[error] 146-146: Replace <a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 147-147: Insert ················

(prettier/prettier)


[error] 148-148: Insert ················

(prettier/prettier)


[error] 149-149: Insert ················

(prettier/prettier)


[error] 150-150: Insert ················

(prettier/prettier)


[error] 151-151: Insert ················

(prettier/prettier)


[error] 152-152: Replace ····<a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 153-153: Insert ················

(prettier/prettier)


[error] 154-154: Insert ················

(prettier/prettier)


[error] 155-155: Insert ················

(prettier/prettier)


[error] 156-156: Insert ················

(prettier/prettier)


[error] 157-157: Insert ················

(prettier/prettier)


[error] 158-158: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 159-159: Insert ················

(prettier/prettier)


[error] 160-160: Insert ················

(prettier/prettier)


[error] 161-161: Insert ················

(prettier/prettier)


[error] 162-162: Insert ················

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 144-144: Insert · prettier/prettier


[error] 145-145: Insert ················ prettier/prettier


[error] 146-146: Replace <a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 146-146: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 147-147: Insert ················ prettier/prettier


[error] 148-148: Insert ················ prettier/prettier


[error] 149-149: Insert ················ prettier/prettier


[error] 150-150: Insert ················ prettier/prettier


[error] 151-151: Insert ················ prettier/prettier


[error] 152-152: Replace ····<a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 152-152: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 153-153: Insert ················ prettier/prettier


[error] 154-154: Insert ················ prettier/prettier


[error] 155-155: Insert ················ prettier/prettier


[error] 156-156: Insert ················ prettier/prettier


[error] 157-157: Insert ················ prettier/prettier


[error] 158-158: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 158-158: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 159-159: Insert ················ prettier/prettier


[error] 160-160: Insert ················ prettier/prettier


[error] 161-161: Insert ················ prettier/prettier


[error] 162-162: Replace </div>⏎⏎ with ················</div> prettier/prettier

Comment on lines +164 to +165


Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Remove extra blank lines.

The pipeline is failing due to extra blank lines.

-

-
📝 Committable 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. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
🧰 Tools
🪛 ESLint

[error] 163-165: Replace </div>⏎⏎ with ················</div>

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 165-165: More than 1 blank line not allowed. no-multiple-empty-lines

Comment on lines 144 to 163
<div className='flex border-t p-2' data-testid='Ambassadors-members-socials'>
{ambassador.twitterUrl && (
<a href={ambassador.twitterUrl} target='_blank' rel='noreferrer' className='underline flex items-center gap-1'>
<Twitter size={16} className='text-blue-400' />
Twitter
</a>
)}
{ambassador.githubUrl && (
<a href={ambassador.githubUrl} target='_blank' rel='noreferrer' className='ml-3 underline flex items-center gap-1'>
<Github size={16} className='text-gray-700' />
Github
</a>
)}
{ambassador.linkedinUrl && (
<a href={ambassador.linkedinUrl} target='_blank' rel='noreferrer' className='ml-3 underline flex items-center gap-1'>
<Linkedin size={16} className='text-blue-600' />
Linkedin
</a>
)}
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix formatting issues and correct Tailwind class order.

The conditional rendering of social media links is a good improvement, but there are formatting issues that are causing pipeline failures.

Apply these formatting fixes:

-               <div className='flex border-t p-2' data-testid='Ambassadors-members-socials'>
-  {ambassador.twitterUrl && (
-    <a href={ambassador.twitterUrl} target='_blank' rel='noreferrer' className='underline flex items-center gap-1'>
-      <Twitter size={16} className='text-blue-400' />
-      Twitter
-    </a>
-  )}
-  {ambassador.githubUrl && (
-    <a href={ambassador.githubUrl} target='_blank' rel='noreferrer' className='ml-3 underline flex items-center gap-1'>
-      <Github size={16} className='text-gray-700' />
-      Github
-    </a>
-  )}
-  {ambassador.linkedinUrl && (
-    <a href={ambassador.linkedinUrl} target='_blank' rel='noreferrer' className='ml-3 underline flex items-center gap-1'>
-      <Linkedin size={16} className='text-blue-600' />
-      Linkedin
-    </a>
-  )}
-</div>
+                <div className='flex border-t p-2' data-testid='Ambassadors-members-socials'>
+                  {ambassador.twitterUrl && (
+                    <a
+                      href={ambassador.twitterUrl}
+                      target='_blank'
+                      rel='noreferrer'
+                      className='flex items-center gap-1 underline'
+                    >
+                      <Twitter size={16} className='text-blue-400' />
+                      Twitter
+                    </a>
+                  )}
+                  {ambassador.githubUrl && (
+                    <a
+                      href={ambassador.githubUrl}
+                      target='_blank'
+                      rel='noreferrer'
+                      className='ml-3 flex items-center gap-1 underline'
+                    >
+                      <Github size={16} className='text-gray-700' />
+                      Github
+                    </a>
+                  )}
+                  {ambassador.linkedinUrl && (
+                    <a
+                      href={ambassador.linkedinUrl}
+                      target='_blank'
+                      rel='noreferrer'
+                      className='ml-3 flex items-center gap-1 underline'
+                    >
+                      <Linkedin size={16} className='text-blue-600' />
+                      Linkedin
+                    </a>
+                  )}
+                </div>
📝 Committable 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. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<div className='flex border-t p-2' data-testid='Ambassadors-members-socials'>
{ambassador.twitterUrl && (
<a href={ambassador.twitterUrl} target='_blank' rel='noreferrer' className='underline flex items-center gap-1'>
<Twitter size={16} className='text-blue-400' />
Twitter
</a>
)}
{ambassador.githubUrl && (
<a href={ambassador.githubUrl} target='_blank' rel='noreferrer' className='ml-3 underline flex items-center gap-1'>
<Github size={16} className='text-gray-700' />
Github
</a>
)}
{ambassador.linkedinUrl && (
<a href={ambassador.linkedinUrl} target='_blank' rel='noreferrer' className='ml-3 underline flex items-center gap-1'>
<Linkedin size={16} className='text-blue-600' />
Linkedin
</a>
)}
</div>
<div className='flex border-t p-2' data-testid='Ambassadors-members-socials'>
{ambassador.twitterUrl && (
<a
href={ambassador.twitterUrl}
target='_blank'
rel='noreferrer'
className='flex items-center gap-1 underline'
>
<Twitter size={16} className='text-blue-400' />
Twitter
</a>
)}
{ambassador.githubUrl && (
<a
href={ambassador.githubUrl}
target='_blank'
rel='noreferrer'
className='ml-3 flex items-center gap-1 underline'
>
<Github size={16} className='text-gray-700' />
Github
</a>
)}
{ambassador.linkedinUrl && (
<a
href={ambassador.linkedinUrl}
target='_blank'
rel='noreferrer'
className='ml-3 flex items-center gap-1 underline'
>
<Linkedin size={16} className='text-blue-600' />
Linkedin
</a>
)}
</div>
🧰 Tools
🪛 ESLint

[error] 144-144: Insert ·

(prettier/prettier)


[error] 145-145: Insert ················

(prettier/prettier)


[error] 146-146: Replace <a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 147-147: Insert ················

(prettier/prettier)


[error] 148-148: Insert ················

(prettier/prettier)


[error] 149-149: Insert ················

(prettier/prettier)


[error] 150-150: Insert ················

(prettier/prettier)


[error] 151-151: Insert ················

(prettier/prettier)


[error] 152-152: Replace ····<a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 153-153: Insert ················

(prettier/prettier)


[error] 154-154: Insert ················

(prettier/prettier)


[error] 155-155: Insert ················

(prettier/prettier)


[error] 156-156: Insert ················

(prettier/prettier)


[error] 157-157: Insert ················

(prettier/prettier)


[error] 158-158: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎····················

(prettier/prettier)


[error] 159-159: Insert ················

(prettier/prettier)


[error] 160-160: Insert ················

(prettier/prettier)


[error] 161-161: Insert ················

(prettier/prettier)


[error] 162-162: Insert ················

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 144-144: Insert · prettier/prettier


[error] 145-145: Insert ················ prettier/prettier


[error] 146-146: Replace <a·href={ambassador.twitterUrl}·target='_blank'·rel='noreferrer'·className='underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.twitterUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 146-146: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 147-147: Insert ················ prettier/prettier


[error] 148-148: Insert ················ prettier/prettier


[error] 149-149: Insert ················ prettier/prettier


[error] 150-150: Insert ················ prettier/prettier


[error] 151-151: Insert ················ prettier/prettier


[error] 152-152: Replace ····<a·href={ambassador.githubUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ····················<a⏎······················href={ambassador.githubUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 152-152: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 153-153: Insert ················ prettier/prettier


[error] 154-154: Insert ················ prettier/prettier


[error] 155-155: Insert ················ prettier/prettier


[error] 156-156: Insert ················ prettier/prettier


[error] 157-157: Insert ················ prettier/prettier


[error] 158-158: Replace <a·href={ambassador.linkedinUrl}·target='_blank'·rel='noreferrer'·className='ml-3·underline·flex·items-center·gap-1' with ················<a⏎······················href={ambassador.linkedinUrl}⏎······················target='_blank'⏎······················rel='noreferrer'⏎······················className='ml-3·underline·flex·items-center·gap-1'⏎···················· prettier/prettier


[warning] 158-158: Invalid Tailwind CSS classnames order tailwindcss/classnames-order


[error] 159-159: Insert ················ prettier/prettier


[error] 160-160: Insert ················ prettier/prettier


[error] 161-161: Insert ················ prettier/prettier


[error] 162-162: Replace </div>⏎⏎ with ················</div> prettier/prettier

Comment on lines 1 to 4
import { sortBy } from 'lodash';
import Link from 'next/link';
import React from 'react';
import { Github, Linkedin, Twitter } from 'lucide-react';
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix import sorting.

The pipeline is failing due to incorrect import order. The imports need to be sorted according to the project's guidelines.

 import { sortBy } from 'lodash';
 import Link from 'next/link';
-import React from 'react';
 import { Github, Linkedin, Twitter } from 'lucide-react';
+import React from 'react';

Committable suggestion skipped: line range outside the PR's diff.

🧰 Tools
🪛 ESLint

[error] 1-14: Run autofix to sort these imports!

(simple-import-sort/imports)

🪛 GitHub Actions: PR testing - if Node project

[error] 1-1: Run autofix to sort these imports! simple-import-sort/imports

Copy link
Author

@Aditya90456 Aditya90456 left a comment

Choose a reason for hiding this comment

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

fix

Copy link
Author

@Aditya90456 Aditya90456 left a comment

Choose a reason for hiding this comment

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

fix

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

Successfully merging this pull request may close these issues.

2 participants