chore: reduce js files size

This commit is contained in:
DIYgod
2022-09-26 16:52:52 +01:00
parent 256b3c8e2b
commit ca40896de8
3 changed files with 13 additions and 3 deletions
+7 -2
View File
@@ -118,9 +118,14 @@ export const Comment: React.FC<{
<Popover.Button className="group inline-flex items-center rounded-md px-2 text-xl">
<FaceSmileIcon className="w-6 h-6 text-zinc-400 hover:text-zinc-500" />
</Popover.Button>
<Popover.Panel className="absolute left-0 mt-3 ">
<Popover.Panel className="absolute left-0 top-full">
<Picker
data={data}
data={async () => {
const response = await fetch(
"https://cdn.jsdelivr.net/npm/@emoji-mart/data",
)
return response.json()
}}
onEmojiSelect={(e: any) =>
form.setValue(
"content",