Skip to content

Commit

Permalink
feat: added figment signer
Browse files Browse the repository at this point in the history
  • Loading branch information
BLuEScioN committed Jul 24, 2024
1 parent 5960cd9 commit d052f1c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 27 deletions.
31 changes: 17 additions & 14 deletions src/app/_components/NavBar/DesktopNav.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { CaretDown } from '@phosphor-icons/react';
import { FC } from 'react';

import { Box } from '../../../ui/Box';
import { Flex } from '../../../ui/Flex';
import { Icon } from '../../../ui/Icon';
import { Link } from '../../../ui/Link';
Expand Down Expand Up @@ -44,20 +45,22 @@ export const DesktopNav: FC<{ navItems: NavItem[] }> = ({ navItems }) => {
</Flex>
</PopoverTrigger>
{navItem.children && (
<PopoverContent
boxShadow={'xl'}
bg="surface"
rounded={'xl'}
mt={4}
width="fit-content"
maxWidth={500}
p={2}
borderColor="borderSecondary"
>
{navItem.children.map(child => (
<LabelWrapper {...child} key={child.id} />
))}
</PopoverContent>
<Box h="full" w="full" zIndex="popover">
<PopoverContent
boxShadow={'xl'}
bg="surface"
rounded={'xl'}
mt={4}
width="fit-content"
maxWidth={500}
p={2}
borderColor="borderSecondary"
>
{navItem.children.map(child => (
<LabelWrapper {...child} key={child.id} />
))}
</PopoverContent>
</Box>
)}
</Popover>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,20 @@ exports[`DesktopNav should render correctly 1`] = `
</svg>
</div>
<div
class="chakra-popover__popper css-0"
style="visibility: hidden; position: absolute; min-width: max-content; inset: 0 auto auto 0;"
class="css-14g0vpv"
>
<section
class="chakra-popover__content css-1fqoc9d"
id="popover-content-:r1:"
role="tooltip"
style="transform-origin: var(--popper-transform-origin); opacity: 0; visibility: hidden; transform: scale(0.95) translateZ(0);"
tabindex="-1"
/>
<div
class="chakra-popover__popper css-0"
style="visibility: hidden; position: absolute; min-width: max-content; inset: 0 auto auto 0;"
>
<section
class="chakra-popover__content css-1fqoc9d"
id="popover-content-:r1:"
role="tooltip"
style="transform-origin: var(--popper-transform-origin); opacity: 0; visibility: hidden; transform: scale(0.95) translateZ(0);"
tabindex="-1"
/>
</div>
</div>
</div>
<div
Expand Down
4 changes: 0 additions & 4 deletions src/app/signers/SignersMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ const activeMarkerIconDark = new L.DivIcon({
iconAnchor: [10, 10],
});

const exactIcon = new L.Icon({
iconUrl: '/exact-marker.svg',
});

interface CenterAndZoom {
center: [number, number];
zoom: number;
Expand Down
4 changes: 4 additions & 0 deletions src/app/signers/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export const SIGNER_KEY_MAP: Record<string, { poolOperator: string; name: string
poolOperator: '',
name: 'Kiln',
},
'0x025f9fd3d308e7306e154d9a5466a5aee6918258cdb08924ade59bea04f472b339': {
poolOperator: '',
name: 'Figment',
},
};
export const mobileBorderCss = {
'.has-horizontal-scroll &': {
Expand Down

0 comments on commit d052f1c

Please sign in to comment.