-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ProjectEditor): Use an object instead of an array for samples
- Loading branch information
Showing
4 changed files
with
63 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
interface ButtonProps { | ||
children: React.ReactNode; | ||
onClick: React.MouseEventHandler<HTMLButtonElement>; | ||
title?: string; | ||
|
||
className?: string; | ||
} | ||
|
||
export default function Button ({ | ||
children, | ||
onClick, | ||
title, | ||
|
||
className | ||
}: ButtonProps) { | ||
return ( | ||
<button | ||
className={` | ||
whitespace-nowrap px-4 py-2 rounded-lg | ||
text-gray-300 flex justify-center items-center | ||
bg-gray-900 bg-opacity-20 | ||
border border-gray-900 | ||
transition-all | ||
${className ? className : ""} | ||
`} | ||
|
||
onClick={onClick} | ||
title={title} | ||
> | ||
{children} | ||
</button> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters