68 lines
1.8 KiB
TypeScript
68 lines
1.8 KiB
TypeScript
// Disabling until we figure out what is happening with the RouterMock.
|
|
import { ComponentMeta } from "@storybook/react";
|
|
import { Link } from "react-feather";
|
|
|
|
import { VerticalTabItem } from "@calcom/ui/v2";
|
|
|
|
export default {
|
|
title: "VerticalTabItem",
|
|
component: VerticalTabItem,
|
|
} as ComponentMeta<typeof VerticalTabItem>;
|
|
|
|
const TabItemProps = {
|
|
name: "Event Setup",
|
|
icon: Link,
|
|
href: "/settings/event",
|
|
info: "60 mins, Zoom",
|
|
};
|
|
|
|
// export const Default = () => (
|
|
// <div className="h-20 w-full bg-gray-100 p-4">
|
|
// <VerticalTabItem {...TabItemProps}></VerticalTabItem>
|
|
// </div>
|
|
// );
|
|
// export const Active = () => (
|
|
// <div className="h-20 w-full bg-gray-100 p-4">
|
|
// <VerticalTabItem {...TabItemProps}></VerticalTabItem>
|
|
// </div>
|
|
// );
|
|
|
|
// Mocking next router to show active state
|
|
// Active.parameters = {
|
|
// nextRouter: {
|
|
// path: "/settings/[tab]",
|
|
// asPath: "/settings/event",
|
|
// },
|
|
// };
|
|
|
|
// export const Disabled = () => (
|
|
// <div className="h-20 w-full bg-gray-100 p-4">
|
|
// <VerticalTabItem {...TabItemProps} disabled></VerticalTabItem>
|
|
// </div>
|
|
// );
|
|
|
|
// export const NoIconNoInfo = () => (
|
|
// <div className="h-20 w-full bg-gray-100 p-4">
|
|
// <VerticalTabItem name="Event Setup" href="/settings/event"></VerticalTabItem>
|
|
// </div>
|
|
// );
|
|
|
|
// export const IconNoInfo = () => (
|
|
// <div className="h-20 w-full bg-gray-100 p-4">
|
|
// <VerticalTabItem name="Event Setup" href="/settings/event" icon={Link}></VerticalTabItem>
|
|
// </div>
|
|
// );
|
|
|
|
// export const IconNoInfoActive = () => (
|
|
// <div className="h-20 w-full bg-gray-100 p-4">
|
|
// <VerticalTabItem name="Event Setup" href="/settings/events" icon={Link}></VerticalTabItem>
|
|
// </div>
|
|
// );
|
|
|
|
// IconNoInfoActive.paramaters = {
|
|
// nextRouter: {
|
|
// path: "/settings/[tab]",
|
|
// asPath: "/settings/events",
|
|
// },
|
|
// };
|