Skip to content

Commit

Permalink
feat(suite): add minHeight to Flex component
Browse files Browse the repository at this point in the history
  • Loading branch information
adderpositive authored and tomasklim committed Oct 1, 2024
1 parent 5288cb9 commit 4bc84bf
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
1 change: 1 addition & 0 deletions packages/components/src/components/Flex/Flex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const allowedFlexFrameProps = [
'margin',
'width',
'height',
'minHeight',
'overflow',
] as const satisfies FramePropsKeys[];
type AllowedFrameProps = Pick<FrameProps, (typeof allowedFlexFrameProps)[number]>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,19 @@ export const NetworkTabs = ({
onClick={() => {
if (
searchCategory?.coingeckoId === network.coingeckoId &&
searchCategory.coingeckoNativeId === network.coingeckoNativeId
searchCategory?.coingeckoNativeId === network.coingeckoNativeId
) {
setSearchCategory(null);

return;
}

setSearchCategory({
coingeckoId: network.coingeckoId,
coingeckoNativeId: network.coingeckoNativeId,
});
if (network.coingeckoId) {
setSearchCategory({
coingeckoId: network.coingeckoId,
coingeckoNativeId: network.coingeckoNativeId,
});
}
}}
key={network.coingeckoId}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ export const selectAssetModalOptions: SelectAssetOptionProps[] = [
},
{
type: 'currency',
value: 'matic-network',
label: 'MATIC',
cryptoName: 'Polygon',
coingeckoId: 'matic-network',
value: 'polygon-pos',
label: 'POL',
cryptoName: 'Polygon PoS',
coingeckoId: 'polygon-pos',
},
{
type: 'currency',
Expand Down Expand Up @@ -720,7 +720,7 @@ export const selectAssetModalOptions: SelectAssetOptionProps[] = [
{
type: 'currency',
value: 'ethereum--0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0',
label: 'MATIC',
label: 'POL',
cryptoName: 'Polygon',
coingeckoId: 'ethereum',
contractAddress: '0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0',
Expand Down Expand Up @@ -1087,9 +1087,9 @@ export const selectAssetModalNetworks: SelectAssetNetworkProps[] = [
},
{
name: 'Polygon PoS',
symbol: 'matic',
symbol: 'pol',
coingeckoId: 'polygon-pos',
coingeckoNativeId: 'matic-network',
coingeckoNativeId: 'polygon-ecosystem-token',
},
{
name: 'Solana',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ export const useCoinmarketInfo = (): CoinmarketInfoProps => {
return toCryptoOption(cryptoId, coinInfo);
}

const { coingeckoId, name } = networks.btc;
const { coingeckoId, name, symbol } = networks.btc;
const item: CoinmarketCryptoSelectItemProps = {
type: 'currency',
value: cryptoId,
label: 'BTC',
value: coingeckoId as CryptoId,
label: symbol.toUpperCase(),
cryptoName: name,
coingeckoId,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const CoinmarketFormInputCryptoSelect = <
};

const getNetworks = () => {
const networksToSelect: NetworkSymbol[] = ['eth', 'sol', 'matic', 'bnb'];
const networksToSelect: NetworkSymbol[] = ['eth', 'sol', 'pol', 'bnb'];
const networkAllKeys = Object.keys(networks) as NetworkSymbol[];
const networkKeys = networkAllKeys.filter(item => networksToSelect.includes(item));
const networksSelected = networkKeys.map(networkKey => ({
Expand Down

0 comments on commit 4bc84bf

Please sign in to comment.