Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react-vite";
import { AnimatedCounter } from "./animated-counter";

const meta: Meta<typeof AnimatedCounter> = {
title: "AnimatedCounter",
title: "Components/AnimatedCounter",
component: AnimatedCounter,
parameters: {
layout: "centered",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useState } from "react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { EmojiPicker } from "./emoji-picker";
import { EmojiIconPickerTypes } from "./helper";
import { EmojiIconPickerTypes, TChangeHandlerProps } from "./helper";

const meta: Meta<typeof EmojiPicker> = {
title: "EmojiPicker",
title: "Components/Emoji/EmojiPicker",
component: EmojiPicker,
parameters: {
layout: "centered",
Expand All @@ -17,7 +17,7 @@ type Story = StoryObj<typeof EmojiPicker>;

const EmojiPickerWithState = (args: React.ComponentProps<typeof EmojiPicker>) => {
const [isOpen, setIsOpen] = useState(false);
const [selectedValue, setSelectedValue] = useState<any>(null);
const [selectedValue, setSelectedValue] = useState<TChangeHandlerProps | null>(null);

return (
<div className="space-y-4">
Expand All @@ -27,7 +27,6 @@ const EmojiPickerWithState = (args: React.ComponentProps<typeof EmojiPicker>) =>
handleToggle={setIsOpen}
onChange={(value) => {
setSelectedValue(value);
console.log("Selected:", value);
}}
/>
{selectedValue && <div className="text-sm text-gray-600">Selected: {JSON.stringify(selectedValue, null, 2)}</div>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { stringToEmoji } from "../emoji-icon-picker";
import { EmojiReactionPicker } from "./emoji-reaction-picker";

const meta: Meta<typeof EmojiReactionPicker> = {
title: "EmojiReactionPicker",
title: "Components/Emoji/EmojiReactionPicker",
component: EmojiReactionPicker,
parameters: {
layout: "centered",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react-vite";
import { EmojiReaction } from "./emoji-reaction";

const meta: Meta<typeof EmojiReaction> = {
title: "EmojiReaction",
title: "Components/Emoji/EmojiReaction",
component: EmojiReaction,
parameters: {
layout: "centered",
Expand Down
Loading