Skip to content

Commit

Permalink
docs: convert to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Apr 3, 2024
1 parent 623884c commit 2ef6aed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Tooltip's arrow can appear from top, bottom, left or right.
<div className="monday-storybook-tooltip_position-left" />
</Tooltip>
),
description: "Use tooltip with image to provide a preview. "
description: "Use this app to visualize data."
},
negative: {
component: (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const modifiers = [
{
name: "flip",
options: {
// @ts-ignore
fallbackPlacements: []
}
}
Expand All @@ -19,10 +20,6 @@ export const TipOtherComponents = () => (
<Tip>
As tooltips only surface from a hover, never include links or buttons in the copy. If your tooltip requires either
of these, considers putting your content in a{" "}
<StorybookLink page="Popover/Tipseen" size={StorybookLink.sizes.SMALL}>
Tipseen
</StorybookLink>{" "}
or{" "}
<StorybookLink page="Feedback/AttentionBox" size={StorybookLink.sizes.SMALL}>
Attention box
</StorybookLink>{" "}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Tooltip from "../Tooltip";
import Tooltip, { TooltipProps } from "../Tooltip";
import { Hide, Menu, Subitems } from "../../Icon/Icons";
import Button from "../../Button/Button";
import Flex from "../../Flex/Flex";
Expand All @@ -20,7 +20,7 @@ export default {
decorators: metaSettings.decorators
};

const tooltipTemplate = args => {
const tooltipTemplate = (args: TooltipProps) => {
return (
<div className="monday-storybook-tooltip_overview">
<Tooltip
Expand Down

0 comments on commit 2ef6aed

Please sign in to comment.