Skip to content

Commit

Permalink
feat: add optional id prop to CreateButton component
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelVR17 committed Feb 24, 2025
1 parent 728d522 commit 8584e74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/utils/ui/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ interface CreateButtonProps {
label: string;
url: string;
className?: string;
id?: string;
}

const CreateButton = ({ label, url, className }: CreateButtonProps) => {
const CreateButton = ({ label, url, className, id }: CreateButtonProps) => {
return (
<Link href={url}>
<Link href={url} id={id || ""}>
<Button className={className}>{label}</Button>
</Link>
);
Expand Down

0 comments on commit 8584e74

Please sign in to comment.