diff --git a/src/assets/images/cows.png b/src/assets/images/cows.png deleted file mode 100644 index e14aefee8..000000000 Binary files a/src/assets/images/cows.png and /dev/null differ diff --git a/src/assets/images/xdai.png b/src/assets/images/xdai.png deleted file mode 100644 index a24b7c0e4..000000000 Binary files a/src/assets/images/xdai.png and /dev/null differ diff --git a/src/custom/assets/cow-swap/cow.svg b/src/custom/assets/cow-swap/cow.svg new file mode 100644 index 000000000..55b2b1780 --- /dev/null +++ b/src/custom/assets/cow-swap/cow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/images/wxdai.png b/src/custom/assets/cow-swap/wxdai.png similarity index 100% rename from src/assets/images/wxdai.png rename to src/custom/assets/cow-swap/wxdai.png diff --git a/src/custom/components/AccountDetails/Transaction/ActivityDetails.tsx b/src/custom/components/AccountDetails/Transaction/ActivityDetails.tsx index 70ea2d9fc..e4d6e13f3 100644 --- a/src/custom/components/AccountDetails/Transaction/ActivityDetails.tsx +++ b/src/custom/components/AccountDetails/Transaction/ActivityDetails.tsx @@ -17,7 +17,7 @@ import { } from './styled' import { getLimitPrice, getExecutionPrice } from 'state/orders/utils' -import { DEFAULT_PRECISION } from 'constants/index' +import { DEFAULT_PRECISION, V_COW_CONTRACT_ADDRESS } from 'constants/index' import { ActivityDerivedState } from './index' import { GnosisSafeLink } from './StatusDetails' import CurrencyLogo from 'components/CurrencyLogo' @@ -160,7 +160,9 @@ export function ActivityDetails(props: { const { activityDerivedState, chainId, activityLinkUrl, disableMouseActions, creationTime } = props const { id, isOrder, summary, order, enhancedTransaction, isCancelled, isExpired, isUnfillable } = activityDerivedState - const approvalToken = useToken(enhancedTransaction?.approval?.tokenAddress) || null + const tokenAddress = + enhancedTransaction?.approval?.tokenAddress || (enhancedTransaction?.claim && V_COW_CONTRACT_ADDRESS[chainId]) + const singleToken = useToken(tokenAddress) || null if (!order && !enhancedTransaction) return null @@ -235,9 +237,9 @@ export function ActivityDetails(props: { {creationTime && {creationTime}} {/* Token Approval Currency Logo */} - {!isOrder && approvalToken && ( + {!isOrder && singleToken && ( - + )} diff --git a/src/custom/components/CurrencyLogo/CurrencyLogoMod.tsx b/src/custom/components/CurrencyLogo/CurrencyLogoMod.tsx index 1c6fd8b03..42707b9f9 100644 --- a/src/custom/components/CurrencyLogo/CurrencyLogoMod.tsx +++ b/src/custom/components/CurrencyLogo/CurrencyLogoMod.tsx @@ -4,7 +4,7 @@ import { useMemo } from 'react' import styled from 'styled-components/macro' import EthereumLogo from 'assets/images/ethereum-logo.png' -import xDaiLogo from 'assets/images/xdai.png' +import xDaiLogo from 'assets/cow-swap/xdai.png' import useHttpLocations from 'hooks/useHttpLocations' import { WrappedTokenInfo } from 'state/lists/wrappedTokenInfo' import Logo from 'components/Logo' diff --git a/src/custom/components/ErrorBoundary/ErrorBoundaryMod.tsx b/src/custom/components/ErrorBoundary/ErrorBoundaryMod.tsx index f427dcf5d..fbcafd20d 100644 --- a/src/custom/components/ErrorBoundary/ErrorBoundaryMod.tsx +++ b/src/custom/components/ErrorBoundary/ErrorBoundaryMod.tsx @@ -10,6 +10,9 @@ import { userAgent } from '@src/utils/userAgent' import { AutoRow } from 'components/Row' import { MEDIA_WIDTHS } from '@src/theme' import CowError from 'assets/cow-swap/CowError.png' +import { UniIcon, LogoImage } from '../Header' +import { HeaderRow } from 'components/Header/HeaderMod' +import Footer from 'components/Footer' const AppWrapper = styled.div` display: flex; @@ -17,6 +20,19 @@ const AppWrapper = styled.div` align-items: center; min-height: 100vh; overflow-x: hidden; + &:after { + content: ''; + position: fixed; + top: 0; + left: 0; + bottom: 0; + right: 0; + filter: blur(20px); + backdrop-filter: blur(20px); + background-image: ${({ theme }) => theme.body.background}; + transition: 0.5s; + z-index: -1; + } ` const Wrapper = styled(Page)` @@ -56,33 +72,19 @@ const HeaderWrapper = styled.div` position: fixed; top: 0; z-index: 2; + padding: 16px; @media screen and (max-width: ${MEDIA_WIDTHS.upToSmall}px) { position: relative; } ` - -export const LogoImage = styled.img.attrs((props) => ({ - src: props.theme.logo.src, - // alt: props.theme.logo.alt, - // width: props.theme.logo.width, - // height: props.theme.logo.height, -}))` - object-fit: contain; - - ${({ theme }) => theme.mediaWidth.upToSmall` - width: 150px; - `}; +const FooterWrapper = styled(HeaderWrapper)` + z-index: 1; + flex-grow: 1; + width: 100%; + position: relative; + top: auto; ` -const CowLogo = styled.div` - display: flex; - margin: 1rem; - transition: transform 0.3s ease; - - &:hover { - transform: rotate(-5deg); - } -` const CodeBlockWrapper = styled.div` background: ${({ theme }) => theme.bg4}; overflow: auto; @@ -135,17 +137,20 @@ export default class ErrorBoundary extends Component - - - - - + + + + + + + @@ -187,6 +192,9 @@ export default class ErrorBoundary extends Component + +