Skip to content

Commit

Permalink
Fix: Key popover (#2816)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuul-wq authored Dec 10, 2024
1 parent d31400e commit 11a0f49
Showing 1 changed file with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import { useI18n } from '@/shared/i18n';
import { FootnoteText, Icon, InfoLink, Popover } from '@/shared/ui';
import { FootnoteText, IconButton, InfoLink } from '@/shared/ui';
import { Box, Popover } from '@/shared/ui-kit';

export const ShardInfoPopover = () => {
const { t } = useI18n();

return (
<Popover
offsetPx={4}
tabIndex={-1}
contentClass="p-4"
panelClass="w-[360px]"
wrapperClass="w-max"
content={
<div className="flex flex-col gap-y-4">
<Popover>
<Popover.Trigger>
<IconButton name="info" size={16} />
</Popover.Trigger>
<Popover.Content>
<Box direction="column" gap={4} padding={4} width="360px">
<section className="flex flex-col gap-y-2">
<FootnoteText className="text-text-secondary">
{t('dynamicDerivations.constructor.shardInfoOne')}
Expand All @@ -33,10 +32,8 @@ export const ShardInfoPopover = () => {
{t('dynamicDerivations.constructor.shardInfoLink')}
</InfoLink>
</section>
</div>
}
>
<Icon name="info" size={16} />
</Box>
</Popover.Content>
</Popover>
);
};

0 comments on commit 11a0f49

Please sign in to comment.