Skip to content

Commit

Permalink
remove error prop
Browse files Browse the repository at this point in the history
  • Loading branch information
tuckpuck committed Jan 6, 2025
1 parent ac8bbe3 commit 79e23b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/badges/GithubRepoBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import { SingleCommitIcon } from "../../assets/icons";

interface GithubRepoBadgeProps {
repoURL: string;
error: string | null;
text?: string; // Optional text prop with default value
}

const GithubRepoBadge: React.FC<GithubRepoBadgeProps> = React.memo(
({ repoURL, error, text = "Team" }) => {
if (!repoURL || error) {
({ repoURL, text = "Team" }) => {
if (!repoURL) {
return null;
}

Expand Down

0 comments on commit 79e23b9

Please sign in to comment.