Skip to content

Commit

Permalink
feat: remove border and redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol-Baranwal committed Aug 1, 2023
1 parent 6fdabcc commit 5f21fec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/ForkButton/GitHubForkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const GitHubForkButton: FC<{ repo: string }> = ({ repo }) => {
rel="noopener noreferrer"
aria-label={`Fork ${repo} on GitHub`}
>
<div className="inline-flex items-center px-4 py-1 text-sm font-semibold bg-transparent border border-violet-500 border-transparent shadow-md text-theme-secondary rounded-sm hover:text-text-secondary transition duration-300 ease-in-out dark:hover:text-text-primary dark:text-theme-primary">
<div className="inline-flex items-center py-1 text-sm font-semibold bg-transparent text-theme-secondary rounded-sm hover:text-text-secondary transition duration-300 ease-in-out dark:hover:text-text-primary dark:text-theme-primary">
<FaCodeBranch className="mr-1" />
<span className="font-semibold">Fork</span>
<span className="ml-2">{forkCount}</span>
Expand Down
3 changes: 1 addition & 2 deletions components/StarButton/GitHubStarButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export const GitHubStarButton: FC<{ repo: string }> = ({ repo }) => {
rel="noopener noreferrer"
aria-label={`Star ${repo} on GitHub`}
>
<div className="inline-flex items-center px-4 py-1 text-sm font-semibold bg-transparen border border-dashed border-transparent shadow-md text-theme-secondary rounded-sm hover:text-text-secondary transition duration-300 ease-in-out dark:hover:text-text-primary dark:text-theme-primary">
{/* <div className="inline-flex items-center px-4 py-1 text-sm bg-violet-500 text-white border border-dashed border-transparent rounded-sm transition-colors shadow-md hover:bg-transparent hover:border-violet-400 hover:text-violet-400"> */}
<div className="inline-flex items-center py-1 text-sm font-semibold bg-transparent text-theme-secondary rounded-sm hover:text-text-secondary transition duration-300 ease-in-out dark:hover:text-text-primary dark:text-theme-primary">
<FaRegStar className="mr-1" />
<span>Star</span>
<span className="ml-2">{starCount}</span>
Expand Down

0 comments on commit 5f21fec

Please sign in to comment.