Skip to content

Commit

Permalink
Fix Tooltip.examples.tsx path from "*/popups/*" to "*/Popups/*"
Browse files Browse the repository at this point in the history
  • Loading branch information
junaidzm13 committed Jan 3, 2024
1 parent c1d4f27 commit 573f581
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 59 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
uses: actions/checkout@v3
- name: Install Node & dependencies
uses: ./.github/actions/setup-vuu-ui
- run: cd ./vuu-ui && npm run lint
- run: cd ./vuu-ui && npm run typecheck

vitest:
Expand Down
33 changes: 0 additions & 33 deletions vuu-ui/showcase/src/examples/Popups/Tooltip.examples.css

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import { Tooltip, useTooltip } from "@finos/vuu-popups";
import { Tooltip, useTooltip, TooltipProps } from "@finos/vuu-popups";
import { useId } from "@finos/vuu-utils";
import { Button, ToggleButton, ToggleButtonGroup } from "@salt-ds/core";
import { SyntheticEvent, useCallback, useMemo, useRef, useState } from "react";

// import "./Tooltip.examples.css";

let displaySequence = 1;

type TooltipPlacement = "above" | "right" | "below" | "left";

export const DefaultTooltip = () => {
const anchorRef = useRef(null);
const [tooltipPlacement, setTooltipPlacement] =
useState<TooltipPlacement>("right");
useState<TooltipProps["placement"]>("right");
const [tooltipContent, setTooltipContent] = useState<"child" | "text">(
"text"
);
Expand All @@ -22,7 +18,7 @@ export const DefaultTooltip = () => {
const handleChangePlacement = useCallback(
(evt: SyntheticEvent<HTMLButtonElement>) => {
const { value } = evt.target as HTMLButtonElement;
setTooltipPlacement(value as TooltipPlacement);
setTooltipPlacement(value as TooltipProps["placement"]);
},
[]
);
Expand Down
2 changes: 1 addition & 1 deletion vuu-ui/showcase/src/examples/Popups/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export * as ContextMenu from "./ContextMenu.examples";
export * as Dialog from "./Dialog.examples";
export * as PopupMenu from "./PopupMenu.examples";
export * as Tooltip from "./Tooltip.examples";
export * as Notifications from "./Notifications"
export * as Notifications from "./Notifications";
17 changes: 0 additions & 17 deletions vuu-ui/showcase/src/examples/popups/Tooltip.tsx

This file was deleted.

0 comments on commit 573f581

Please sign in to comment.