Skip to content

Commit

Permalink
feat: implement mempool api, closes leather-io/issues#215
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Jul 31, 2024
1 parent bbded02 commit 0608cb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/common/hooks/use-media-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useEffect, useState } from 'react';
import { BreakpointToken, token } from 'leather-styles/tokens';

function useMediaQuery(query: string) {
const [matches, setMatches] = useState(false);
const [matches, setMatches] = useState(() => window.matchMedia(query).matches);

useEffect(() => {
const media = window.matchMedia(query);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const SwitchAccountDialog = memo(({ isShowing, onClose }: SwitchAccountDi
initialTopMostItemIndex={whenWallet({ ledger: 0, software: currentAccountIndex })}
totalCount={accountNum}
itemContent={index => (
<Box key={index} my="space.05" px="space.05">
<Box key={index} py="space.03" px="space.05">
<SwitchAccountListItem
handleClose={onClose}
currentAccountIndex={currentAccountIndex}
Expand Down
5 changes: 3 additions & 2 deletions src/app/ui/components/virtuoso.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function VirtuosoWrapper({ children, hasFooter, isPopup }: VirtuosoWrappe
const [key, setKey] = useState(0);
const isAtLeastMd = useViewportMinWidth('md');
const virtualHeight = isAtLeastMd ? '70vh' : '100vh';
const headerHeight = isPopup ? 230 : 80;
const headerHeight = isPopup ? 230 : 60;
const footerHeight = hasFooter ? 95 : 0;
const heightOffset = headerHeight + footerHeight;
const height = vhToPixels(virtualHeight) - heightOffset;
Expand All @@ -33,9 +33,10 @@ export function VirtuosoWrapper({ children, hasFooter, isPopup }: VirtuosoWrappe
return (
<Box
key={key}
pt="space.03"
overflow="hidden"
style={{
height: height,
overflow: 'hidden',
marginBottom: hasFooter ? `${footerHeight}px` : '10px',
}}
>
Expand Down

0 comments on commit 0608cb8

Please sign in to comment.