diff --git a/src/app/components/resetWallet/index.tsx b/src/app/components/resetWallet/index.tsx index d90dda642..eef9a344d 100644 --- a/src/app/components/resetWallet/index.tsx +++ b/src/app/components/resetWallet/index.tsx @@ -31,6 +31,7 @@ function ResetWalletPrompt({ openResetWalletScreen, }: Props) { const { t } = useTranslation('translation', { keyPrefix: 'SETTING_SCREEN' }); + return ( ({ flex: 1, - paddingLeft: props.theme.spacing(8), - paddingRight: props.theme.spacing(8), + paddingLeft: props.theme.space.m, + paddingRight: props.theme.space.m, display: 'flex', flexDirection: 'column', })); @@ -27,7 +27,7 @@ const ContentContainer = styled.div((props) => ({ display: 'flex', flexDirection: 'column', justifyContent: 'center', - marginBottom: props.theme.spacing(32), + marginBottom: props.theme.space.xxxl, })); const Title = styled.h1((props) => ({ @@ -46,7 +46,7 @@ const BackupActionsContainer = styled.div((props) => ({ display: 'flex', flexDirection: 'row', justifyContent: 'space-between', - marginTop: props.theme.spacing(20), + marginTop: props.theme.space.xxl, width: '100%', columnGap: props.theme.space.xs, })); @@ -55,7 +55,7 @@ const LoadingContainer = styled.div((props) => ({ display: 'flex', justifyContent: 'center', alignItems: 'center', - marginTop: props.theme.spacing(20), + marginTop: props.theme.space.xxl, width: '100%', })); diff --git a/src/app/screens/coinDashboard/index.tsx b/src/app/screens/coinDashboard/index.tsx index 56e89c919..13df8e350 100644 --- a/src/app/screens/coinDashboard/index.tsx +++ b/src/app/screens/coinDashboard/index.tsx @@ -50,7 +50,7 @@ const SecondaryContainer = styled.div((props) => ({ flexDirection: 'column', paddingLeft: props.theme.space.m, paddingRight: props.theme.space.m, - marginTop: props.theme.space.xl, + marginTop: props.theme.space.l, marginBottom: props.theme.space.xl, h1: { ...props.theme.typography.body_medium_m, @@ -295,6 +295,7 @@ export default function CoinDashboard() { brc20Token={protocol === 'brc-20' ? selectedFt?.principal || null : null} runeToken={protocol === 'runes' ? selectedFt?.name || null : null} runeSymbol={protocol === 'runes' ? selectedFt?.runeSymbol || null : null} + withTitle={!displayTabs} /> )} {showStxContract && ( diff --git a/src/app/screens/coinDashboard/transactionsHistoryList.tsx b/src/app/screens/coinDashboard/transactionsHistoryList.tsx index f78c73e08..a2bf69848 100644 --- a/src/app/screens/coinDashboard/transactionsHistoryList.tsx +++ b/src/app/screens/coinDashboard/transactionsHistoryList.tsx @@ -34,18 +34,18 @@ import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import styled from 'styled-components'; -const ListItemsContainer = styled.div({ +const ListItemsContainer = styled.div((props) => ({ display: 'flex', flexDirection: 'column', flex: 1, -}); + marginTop: props.theme.space.l, +})); const ListHeader = styled.h1((props) => ({ - marginTop: props.theme.spacing(20), - marginBottom: props.theme.spacing(12), - marginLeft: props.theme.spacing(8), - marginRight: props.theme.spacing(8), - ...props.theme.headline_s, + ...props.theme.typography.headline_xs, + margin: props.theme.space.m, + marginTop: 0, + marginBottom: props.theme.space.l, })); const LoadingContainer = styled.div({ @@ -65,7 +65,7 @@ const NoTransactionsContainer = styled.div((props) => ({ })); const GroupContainer = styled(animated.div)((props) => ({ - marginBottom: props.theme.spacing(8), + marginBottom: props.theme.space.m, })); const SectionHeader = styled.div((props) => ({ @@ -73,8 +73,8 @@ const SectionHeader = styled.div((props) => ({ flexDirection: 'row', alignItems: 'center', marginBottom: props.theme.spacing(7), - paddingLeft: props.theme.spacing(8), - paddingRight: props.theme.spacing(8), + paddingLeft: props.theme.space.m, + paddingRight: props.theme.space.m, })); const SectionSeparator = styled.div((props) => ({ @@ -86,17 +86,9 @@ const SectionSeparator = styled.div((props) => ({ const SectionTitle = styled.p((props) => ({ ...props.theme.body_xs, color: props.theme.colors.white_200, - marginRight: props.theme.spacing(4), + marginRight: props.theme.space.xs, })); -interface TransactionsHistoryListProps { - coin: CurrencyTypes; - stxTxFilter: string | null; - brc20Token: string | null; - runeToken: string | null; - runeSymbol: string | null; -} - const sortTransactionsByBlockHeight = (transactions: BtcTransactionData[]) => transactions.sort((txA, txB) => { if (txB.blockHeight > txA.blockHeight) { @@ -189,8 +181,24 @@ const filterStxTxs = ( ); }); -export default function TransactionsHistoryList(props: TransactionsHistoryListProps) { - const { coin, stxTxFilter, brc20Token, runeToken, runeSymbol } = props; +type Props = { + coin: CurrencyTypes; + stxTxFilter: string | null; + brc20Token: string | null; + runeToken: string | null; + runeSymbol: string | null; + withTitle?: boolean; +}; + +function TransactionsHistoryList({ + coin, + stxTxFilter, + brc20Token, + runeToken, + runeSymbol, + withTitle = true, +}: Props) { + const { t } = useTranslation('translation', { keyPrefix: 'COIN_DASHBOARD_SCREEN' }); const selectedAccount = useSelectedAccount(); const { network, selectedAccountType } = useWalletSelector(); const btcClient = useBtcClient(); @@ -209,7 +217,6 @@ export default function TransactionsHistoryList(props: TransactionsHistoryListPr }, }); - const { t } = useTranslation('translation', { keyPrefix: 'COIN_DASHBOARD_SCREEN' }); const wallet = selectedAccount ? { ...selectedAccount, @@ -249,7 +256,7 @@ export default function TransactionsHistoryList(props: TransactionsHistoryListPr return ( - {t('TRANSACTION_HISTORY_TITLE')} + {withTitle && {t('TRANSACTION_HISTORY_TITLE')}} {groupedTxs && !isLoading && Object.keys(groupedTxs).map((group) => ( @@ -317,3 +324,5 @@ export default function TransactionsHistoryList(props: TransactionsHistoryListPr ); } + +export default TransactionsHistoryList; diff --git a/src/app/screens/ordinalDetail/index.tsx b/src/app/screens/ordinalDetail/index.tsx index 52dc44216..22bd4c6bb 100644 --- a/src/app/screens/ordinalDetail/index.tsx +++ b/src/app/screens/ordinalDetail/index.tsx @@ -526,7 +526,7 @@ function OrdinalDetailScreen() {