Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jan 24, 2024
1 parent ce99b28 commit fe09b4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/components/Modal/Modal.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useState } from "react";
import { Meta, StoryObj } from "@storybook/react";
import { userEvent, within } from "@storybook/testing-library";
import { expect } from "@storybook/jest";
import { useArgs } from "@storybook/preview-api";

import { Modal } from "./Modal";

Expand Down
2 changes: 1 addition & 1 deletion src/features/GuidedTour/GuidedTour.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useMemo, useState } from "react";
import Joyride, { CallBackProps, STATUS } from "react-joyride";
import Joyride, { CallBackProps, STATUS, Step } from "react-joyride";
import { API } from "@storybook/manager-api";
import { UPDATE_STORY_ARGS } from "@storybook/core-events";
import { useTheme } from "@storybook/theming";
Expand Down
8 changes: 5 additions & 3 deletions src/features/GuidedTour/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { styled } from "@storybook/theming";
import { TooltipRenderProps } from "react-joyride";
import { Step, TooltipRenderProps } from "react-joyride";
import { Button } from "../../components/Button/Button";

const TooltipBody = styled.div`
Expand Down Expand Up @@ -40,11 +40,13 @@ const TooltipFooter = styled.div`
margin-top: 15px;
`;

export type TooltipProps = TooltipRenderProps & {
step: TooltipRenderProps["step"] & {
export type TooltipProps = {
step: Step & {
hideNextButton?: boolean;
onNextButtonClick?: () => void;
};
primaryProps: TooltipRenderProps["primaryProps"]
tooltipProps: TooltipRenderProps["tooltipProps"]
};

export const Tooltip = ({ step, primaryProps, tooltipProps }: TooltipProps) => {
Expand Down

0 comments on commit fe09b4b

Please sign in to comment.