-
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.
- Loading branch information
1 parent
242d959
commit 6a7c5ba
Showing
35 changed files
with
907 additions
and
902 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 |
---|---|---|
|
@@ -32,3 +32,6 @@ yarn-error.log* | |
|
||
# vercel | ||
.vercel | ||
|
||
# Sentry | ||
.sentryclirc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React, { memo } from "react"; | ||
|
||
export interface CategoryProps { | ||
id: string; | ||
name: string; | ||
icon: string | React.ReactElement; | ||
} | ||
|
||
const Category: React.FC<CategoryProps> = (props) => { | ||
return ( | ||
<div className="flex flex-col justify-center items-center w-24 h-24 bg-blue-100 rounded-lg"> | ||
<span className="text-3xl">{props.icon}</span> | ||
<h1>{props.name}</h1> | ||
</div> | ||
); | ||
}; | ||
|
||
export default memo(Category); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
import React from "react"; | ||
import { useField } from "formik"; | ||
import Picker, { IEmojiData } from "emoji-picker-react"; | ||
|
||
export interface EmojiPickerProps { | ||
name: string; | ||
} | ||
|
||
const EmojiPicker: React.FC<EmojiPickerProps> = (props) => { | ||
const [field, meta, helpers] = useField(props.name); | ||
|
||
const onSelect = ( | ||
event: React.MouseEvent<Element, MouseEvent>, | ||
data: IEmojiData | ||
) => { | ||
console.log(data); | ||
helpers.setValue(data.emoji); | ||
}; | ||
|
||
return ( | ||
<div className="w-full flex flex-row justify-center mb-2"> | ||
<Picker onEmojiClick={onSelect} disableSkinTonePicker /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default EmojiPicker; |
This file was deleted.
Oops, something went wrong.
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.