Commit 7fa91d14 authored by Mike Grabowski's avatar Mike Grabowski Committed by GitHub

fix: style on transaction modal (#5427)

parent d9993888
...@@ -16,8 +16,9 @@ export const modalContainer = style([ ...@@ -16,8 +16,9 @@ export const modalContainer = style([
paddingX: '12', paddingX: '12',
}), }),
{ {
alignItems: 'center', flexDirection: 'column',
justifyContent: 'center', justifyContent: 'center',
gap: '24px',
'@media': { '@media': {
'screen and (min-width: 656px)': { 'screen and (min-width: 656px)': {
marginLeft: '-320px', marginLeft: '-320px',
...@@ -142,7 +143,7 @@ export const successAssetsContainer = style([ ...@@ -142,7 +143,7 @@ export const successAssetsContainer = style([
export const successAssetImage = style([ export const successAssetImage = style([
sprinkles({ sprinkles({
borderRadius: '20', borderRadius: '12',
flexShrink: '0', flexShrink: '0',
}), }),
{ {
...@@ -171,7 +172,7 @@ export const overflowFade = style({ ...@@ -171,7 +172,7 @@ export const overflowFade = style({
export const totalEthCost = style([ export const totalEthCost = style([
sprinkles({ sprinkles({
fontSize: '14', fontSize: '14',
color: 'textPrimary', color: 'textSecondary',
marginTop: '1', marginTop: '1',
marginBottom: '0', marginBottom: '0',
}), }),
......
...@@ -17,7 +17,6 @@ import { ...@@ -17,7 +17,6 @@ import {
formatUSDPriceWithCommas, formatUSDPriceWithCommas,
getSuccessfulImageSize, getSuccessfulImageSize,
parseTransactionResponse, parseTransactionResponse,
shortenTxHash,
} from 'nft/utils' } from 'nft/utils'
import { formatAssetEventProperties } from 'nft/utils/formatEventProperties' import { formatAssetEventProperties } from 'nft/utils/formatEventProperties'
import { useEffect, useMemo, useRef, useState } from 'react' import { useEffect, useMemo, useRef, useState } from 'react'
...@@ -138,8 +137,8 @@ const TxCompleteModal = () => { ...@@ -138,8 +137,8 @@ const TxCompleteModal = () => {
<Box>{formatEthPrice(totalPurchaseValue.toString())} ETH</Box> <Box>{formatEthPrice(totalPurchaseValue.toString())} ETH</Box>
</Row> </Row>
<a href={txHashUrl} target="_blank" rel="noreferrer" style={{ textDecoration: 'none' }}> <a href={txHashUrl} target="_blank" rel="noreferrer" style={{ textDecoration: 'none' }}>
<Box color="textPrimary" fontWeight="normal"> <Box color="textSecondary" fontWeight="normal">
{shortenTxHash(txHash, 2, 2)} View on Etherscan
</Box> </Box>
</a> </a>
</Box> </Box>
...@@ -203,8 +202,13 @@ const TxCompleteModal = () => { ...@@ -203,8 +202,13 @@ const TxCompleteModal = () => {
width={{ sm: 'half', md: 'auto' }} width={{ sm: 'half', md: 'auto' }}
> >
<a href={txHashUrl} target="_blank" rel="noreferrer" style={{ textDecoration: 'none' }}> <a href={txHashUrl} target="_blank" rel="noreferrer" style={{ textDecoration: 'none' }}>
<Box fontWeight="normal" marginTop="16" className={styles.totalEthCost}> <Box
{shortenTxHash(txHash, 2, 2)} fontWeight="normal"
marginTop="16"
color="textSecondary"
className={styles.totalEthCost}
>
View on Etherscan
</Box> </Box>
</a> </a>
</Box> </Box>
...@@ -315,7 +319,7 @@ const TxCompleteModal = () => { ...@@ -315,7 +319,7 @@ const TxCompleteModal = () => {
<p className={styles.totalUsdRefund}>{formatUSDPriceWithCommas(totalUSDRefund)}</p> <p className={styles.totalUsdRefund}>{formatUSDPriceWithCommas(totalUSDRefund)}</p>
<Box className={styles.walletAddress} marginLeft="auto" marginRight="0"> <Box className={styles.walletAddress} marginLeft="auto" marginRight="0">
<a href={txHashUrl} target="_blank" rel="noreferrer"> <a href={txHashUrl} target="_blank" rel="noreferrer">
<Box className={styles.addressHash}>{shortenTxHash(txHash, 2, 2)}</Box> <Box className={styles.addressHash}>View on Etherscan</Box>
</a> </a>
</Box> </Box>
<p className={styles.totalEthCost}> <p className={styles.totalEthCost}>
......
...@@ -31,6 +31,8 @@ const themeContractValues = { ...@@ -31,6 +31,8 @@ const themeContractValues = {
textPrimary: '', textPrimary: '',
textSecondary: '', textSecondary: '',
textTertiary: '', textTertiary: '',
dropShadow: '',
}, },
shadows: { shadows: {
...@@ -158,7 +160,6 @@ export const vars = createGlobalTheme(':root', { ...@@ -158,7 +160,6 @@ export const vars = createGlobalTheme(':root', {
genieBlue: '#4C82FB', genieBlue: '#4C82FB',
fallbackGradient: 'linear-gradient(270deg, #D1D5DB 0%, #F6F6F6 100%)', fallbackGradient: 'linear-gradient(270deg, #D1D5DB 0%, #F6F6F6 100%)',
loadingBackground: '#24272e', loadingBackground: '#24272e',
dropShadow: '0px 4px 16px rgba(70, 115, 250, 0.4)',
cardDropShadow: 'rgba(0, 0, 0, 10%) 0px 4px 12px', cardDropShadow: 'rgba(0, 0, 0, 10%) 0px 4px 12px',
green: '#209853', green: '#209853',
orange: '#FA2C38', orange: '#FA2C38',
......
...@@ -29,6 +29,8 @@ export const darkTheme: Theme = { ...@@ -29,6 +29,8 @@ export const darkTheme: Theme = {
textPrimary: '#FFFFFF', textPrimary: '#FFFFFF',
textSecondary: vars.color.gray300, textSecondary: vars.color.gray300,
textTertiary: vars.color.gray500, textTertiary: vars.color.gray500,
dropShadow: `0px 4px 16px rgba(76, 130, 251, 0.4)`,
}, },
shadows: { shadows: {
menu: '0px 10px 30px rgba(0, 0, 0, 0.1)', menu: '0px 10px 30px rgba(0, 0, 0, 0.1)',
......
...@@ -29,6 +29,8 @@ export const lightTheme: Theme = { ...@@ -29,6 +29,8 @@ export const lightTheme: Theme = {
textPrimary: vars.color.gray900, textPrimary: vars.color.gray900,
textSecondary: vars.color.gray500, textSecondary: vars.color.gray500,
textTertiary: vars.color.gray300, textTertiary: vars.color.gray300,
dropShadow: `0px 4px 16px rgba(251, 17, 142, 0.4)`,
}, },
shadows: { shadows: {
menu: '0px 10px 30px rgba(0, 0, 0, 0.1)', menu: '0px 10px 30px rgba(0, 0, 0, 0.1)',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment