-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ canvas draw style 🛠 setting button design 🐛 useEffect hell
- Loading branch information
1 parent
472a30a
commit 1fee217
Showing
10 changed files
with
197 additions
and
55 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,8 @@ | ||
interface IGrayText { | ||
children: React.ReactNode; | ||
} | ||
const GrayText = ({ children }: IGrayText) => { | ||
return <div className="text-gray-500 text-sm"> {children} </div>; | ||
}; | ||
|
||
export default GrayText; |
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,22 @@ | ||
interface ISelect { | ||
children: React.ReactNode; | ||
onSelectChange?: React.ChangeEventHandler<HTMLSelectElement> | undefined; | ||
} | ||
|
||
/** | ||
* | ||
* @param children option tag | ||
* @param onSelectChange onChange Fn | ||
* @returns Select Tag in style | ||
*/ | ||
const Select = ({ children, onSelectChange }: ISelect) => { | ||
return ( | ||
<select | ||
className="w-full bg-gray-50 border border-gray-300 text-gray-600 text-sm rounded-md" | ||
onChange={onSelectChange} | ||
> | ||
{children} | ||
</select> | ||
); | ||
}; | ||
export default Select; |
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
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
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
Oops, something went wrong.