Skip to content

Commit

Permalink
fix: ad row glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed Aug 2, 2024
1 parent c28ee50 commit 75cfbf0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@
margin-top: -0.4rem;
margin-left: 1rem;
}

& .tooltip-menu-icon:hover {
background: none;
}
}
25 changes: 16 additions & 9 deletions src/pages/my-ads/components/AlertComponent/AlertComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
import { TooltipMenuIcon } from '@/components/TooltipMenuIcon';
import { LegacyWarningIcon } from '@deriv/quill-icons';
import { Button, Tooltip } from '@deriv-com/ui';
import { useTranslations } from '@deriv-com/translations';
import './AlertComponent.scss';

type TAlertComponentProps = {
onClick: () => void;
};

const AlertComponent = ({ onClick }: TAlertComponentProps) => (
<div className='alert-component'>
<Tooltip message='Ad not listed' position='bottom'>
<Button className='p-0 hover:bg-none' color='white' onClick={onClick} variant='outlined'>
const AlertComponent = ({ onClick }: TAlertComponentProps) => {
const { localize } = useTranslations();
return (
<div className='alert-component'>
<TooltipMenuIcon
as='button'
onClick={onClick}
tooltipContent={localize('Ad not listed')}
tooltipPosition='top'
>
<LegacyWarningIcon data-testid='dt_alert_icon' iconSize='xs' />
</Button>
</Tooltip>
</div>
);
</TooltipMenuIcon>
</div>
);
};

export default AlertComponent;

0 comments on commit 75cfbf0

Please sign in to comment.