Skip to content

refactor: extract GitHub link into reusable GithubLink component and remove Icon usage#112

Open
BhathiyaVicum wants to merge 3 commits intoO2sa:mainfrom
BhathiyaVicum:main
Open

refactor: extract GitHub link into reusable GithubLink component and remove Icon usage#112
BhathiyaVicum wants to merge 3 commits intoO2sa:mainfrom
BhathiyaVicum:main

Conversation

@BhathiyaVicum
Copy link
Copy Markdown
Contributor

Fixes #111

Summary

This PR improves code maintainability by extracting the repeated GitHub link UI into a reusable GithubLink component. It also removes the deprecated Icon component usage from multiple places, ensuring consistency and better component structure across the application.


Changes

  • Created a new reusable component: components/github-link.tsx
  • Replaced Icon usage in ThemeToggle with GithubLink
  • Replaced Icon usage in AppFooter with GithubLink
  • Removed Icon component export from components/ui/button.tsx

✅ Checklist

  • GitHub link extracted into reusable component
  • Icon usage removed from ThemeToggle
  • Icon usage removed from AppFooter
  • Icon component removed from button.tsx
  • No UI breaking changes

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2026

@BhathiyaVicum is attempting to deploy a commit to the osama's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

Thank you for the pull request! ✅

A maintainer will review this soon. Please be patient while we take a look. 🙌

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.

refactor: Extract GitHub icon to a separate component and replace Icon with Button

1 participant