Skip to content

Commit

Permalink
fix: tooltip opacity + deposit tx tracking (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki authored Nov 6, 2023
1 parent 217374d commit a6cfb0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/components/Tooltip/Tooltip.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import styled from "@emotion/styled";
import { Tooltip } from "react-tooltip";
import { ReactComponent as RoundedCheckmark16 } from "assets/icons/rounded-checkmark-16.svg";

export const StyledAnchor = styled.a`
line-height: 1;
`;

export const StyledTooltip = styled(Tooltip)`
z-index: 5;
padding: 0;
Expand Down
7 changes: 4 additions & 3 deletions src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
GreyRoundedCheckmark16,
TitleSecondary,
StyledTooltip,
StyledAnchor,
} from "./Tooltip.styles";
import { ReactComponent as RoundedCheckmark16 } from "assets/icons/rounded-checkmark-16.svg";
import { ReactComponent as RefereeIcon } from "assets/icons/referree.svg";
Expand Down Expand Up @@ -46,10 +47,10 @@ export const Tooltip: React.FC<TooltipProps> = ({

return (
<>
<a data-tooltip-id={id} data-tooltip-place={placement}>
<StyledAnchor data-tooltip-id={id} data-tooltip-place={placement}>
{children}
</a>
<StyledTooltip id={id} noArrow>
</StyledAnchor>
<StyledTooltip id={id} noArrow opacity={1}>
<Wrapper>
{title && (
<TitleRow>
Expand Down
2 changes: 1 addition & 1 deletion src/views/DepositStatus/hooks/useDepositTracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function useDepositTracking(
toChainId: number,
fromBridgePagePayload?: FromBridgePagePayload
) {
const [shouldRetryDepositQuery, setShouldRetryDepositQuery] = useState(false);
const [shouldRetryDepositQuery, setShouldRetryDepositQuery] = useState(true);

const { addToAmpliQueue } = useAmplitude();

Expand Down

2 comments on commit a6cfb0b

@vercel
Copy link

@vercel vercel bot commented on a6cfb0b Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

goerli-frontend-v2 – ./

goerli-frontend-v2-uma.vercel.app
goerli-frontend-v2-git-master-uma.vercel.app
goerli-frontend-v2.vercel.app

@vercel
Copy link

@vercel vercel bot commented on a6cfb0b Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.