Skip to content

Commit

Permalink
Merge pull request #223 from deriv-com/aizad/FEQ-2441/tooltip-refactor
Browse files Browse the repository at this point in the history
Aizad/FEQ-2441/ Implement new Tooltip with Popper.js
  • Loading branch information
shayan-deriv authored Jul 5, 2024
2 parents ed4a009 + 9f50e18 commit 61dfc1b
Show file tree
Hide file tree
Showing 13 changed files with 370 additions and 512 deletions.
41 changes: 30 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
"test:report": "jest --collectCoverage"
},
"dependencies": {
"@popperjs/core": "^2.11.8",
"@types/react-modal": "^3.16.3",
"react-tiny-popover": "^8.0.4"
"react-popper": "^2.3.0"
},
"devDependencies": {
"@deriv/quill-icons": "^1.22.5",
"@babel/preset-env": "^7.24.3",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@deriv/quill-icons": "^1.22.5",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/github": "^10.0.2",
"@semantic-release/npm": "^12.0.0",
Expand Down
12 changes: 0 additions & 12 deletions playground/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
Text,
PlatformSwitcherItem,
MobileLanguagesDrawer,
TooltipMenuIcon,
} from "../src/main";
import { platformsConfig } from "./platformsConfig";
import { LanguagesItemsDrawerConfig } from "./LanguageItemsDrawerConfig";
Expand Down Expand Up @@ -139,17 +138,6 @@ const App = () => {
</MenuItem>
</Wrapper>
<Wrapper variant="right">
<TooltipMenuIcon
as="a"
href=""
target=""
tooltipContent="Full Screen"
tooltipPosition="bottom"
style={{ padding: "16px" }}
>
click me
</TooltipMenuIcon>

<AccountSwitcher
activeAccount={
accountsList.find(
Expand Down
12 changes: 0 additions & 12 deletions src/components/AppLayout/TooltipMenuIcon/TooltipMenuIcon.scss

This file was deleted.

This file was deleted.

86 changes: 0 additions & 86 deletions src/components/AppLayout/TooltipMenuIcon/index.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/AppLayout/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ export { PlatformSwitcher } from "./PlatformSwitcher";
export { PlatformSwitcherItem } from "./PlatformSwitcher/PlatformSwitcherItem";
export { DesktopLanguagesModal } from "./LanguagesSwitcher/DesktopLanguagesModal";
export { MobileLanguagesDrawer } from "./LanguagesSwitcher/MobileLanguagesDrawer";
export { TooltipMenuIcon } from "./TooltipMenuIcon";
export { Submenu } from "./Submenu ";
Loading

0 comments on commit 61dfc1b

Please sign in to comment.