Skip to content

Commit

Permalink
Merge branch 'develop' into ENG-5340/export-necessary-functionality-f…
Browse files Browse the repository at this point in the history
…rom-ext
  • Loading branch information
dhriaznov authored Oct 2, 2024
2 parents 69cdb39 + 84cb04b commit e8f70d1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/app/components/rareSatIcon/rareSatIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ import styled from 'styled-components';

const Image = styled.img<{ size?: number }>`
object-fit: cover;
width: ${(props) => `${props.size}px` ?? '100%'};
height: ${(props) => `${props.size}px` ?? '100%'};
width: ${(props) => (typeof props.size === 'undefined' ? '100%' : `${props.size}px`)};
height: ${(props) => (typeof props.size === 'undefined' ? '100%' : `${props.size}px`)};
`;

interface Props {
Expand Down
11 changes: 5 additions & 6 deletions src/app/screens/swap/useMasterCoinsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ const useMasterCoinsList = () => {
const isStacksSwapsEnabled = useHasFeature(FeatureId.STACKS_SWAPS);

const coinsMasterList = useMemo(
() =>
[
...(runesFtList || []),
btcFt,
...(!hideStx && isStacksSwapsEnabled ? [stxFt, ...(sip10FtList ?? [])] : []),
] ?? [],
() => [
...(runesFtList || []),
btcFt,
...(!hideStx && isStacksSwapsEnabled ? [stxFt, ...(sip10FtList ?? [])] : []),
],
[runesFtList, hideStx, isStacksSwapsEnabled, sip10FtList],
);

Expand Down
13 changes: 6 additions & 7 deletions src/app/screens/swap/useVisibleMasterCoinsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ const useVisibleMasterCoinsList = () => {
const { hideStx } = useWalletSelector();

const coinsMasterList = useMemo(
() =>
[
...sip10FtList,
...runesFtList,
btcFt,
...(!hideStx && isStacksSwapsEnabled ? [stxFt] : []),
] ?? [],
() => [
...sip10FtList,
...runesFtList,
btcFt,
...(!hideStx && isStacksSwapsEnabled ? [stxFt] : []),
],
[sip10FtList, runesFtList, hideStx, isStacksSwapsEnabled],
);

Expand Down

0 comments on commit e8f70d1

Please sign in to comment.