From d2a14633dd033d9c5ed5368f18e5422160cd40d9 Mon Sep 17 00:00:00 2001 From: prachigarg19 <72646230+prachigarg19@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:31:18 +0530 Subject: [PATCH] add right arrow and info icon popup component --- src/temp/components/InfoIconPopup.tsx | 45 +++++++++++++++++++++++++++ src/temp/icons/RightArrowIcon.tsx | 20 ++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 src/temp/components/InfoIconPopup.tsx create mode 100644 src/temp/icons/RightArrowIcon.tsx diff --git a/src/temp/components/InfoIconPopup.tsx b/src/temp/components/InfoIconPopup.tsx new file mode 100644 index 0000000000..763bdfbf20 --- /dev/null +++ b/src/temp/components/InfoIconPopup.tsx @@ -0,0 +1,45 @@ +import React from 'react'; +import NewInfoIcon from '../icons/NewInfoIcon'; +import { bindHover, bindPopover } from 'material-ui-popup-state'; +import HoverPopover from 'material-ui-popup-state/HoverPopover'; +import { usePopupState } from 'material-ui-popup-state/hooks'; + +interface Props { + height: number; + width: number; + color: string; + children: React.ReactNode; +} + +const InfoIconPopup = ({ height, width, color, children }: Props) => { + const abandonmentInfoPopupState = usePopupState({ + variant: 'popover', + popupId: 'abandonmentInfoPopover', + }); + return ( +