Skip to content

Commit

Permalink
refactor: Fix typo in BuyCryptoButton component
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Feb 7, 2024
1 parent d8ca8bf commit f2aa20a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/common/AddFunds/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useCurrentChain } from '@/hooks/useChains'
import useSafeAddress from '@/hooks/useSafeAddress'
import { useAppDispatch, useAppSelector } from '@/store'
import { selectSettings, setQrShortName } from '@/store/settingsSlice'
import BuyCryproButton from '@/components/common/BuyCryproButton'
import BuyCryptoButton from '@/components/common/BuyCryptoButton'

const AddFundsCTA = () => {
const safeAddress = useSafeAddress()
Expand All @@ -17,7 +17,7 @@ const AddFundsCTA = () => {

return (
<Paper>
<Grid container gap={3} alignItems="center" justifyContent="center" py={10} px={2}>
<Grid container gap={3} alignItems="center" justifyContent="center" p={4}>
<Grid item>
<div>
<Box p={2} border="1px solid" borderColor="border.light" borderRadius={1} display="inline-block">
Expand Down Expand Up @@ -58,7 +58,7 @@ const AddFundsCTA = () => {
</Grid>
<Grid item xs={12} lg={4}>
<Typography mb={1}>Buy crypto with fiat:</Typography>
<BuyCryproButton />
<BuyCryptoButton />
</Grid>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ const _BuyCryptoButton = ({ href, pagePath }: { href?: LinkProps['href']; pagePa
)
}

const BuyCryproButton = madProps(_BuyCryptoButton, {
const BuyCryptoButton = madProps(_BuyCryptoButton, {
href: useBuyCryptoHref,
pagePath: usePathname,
})

export default BuyCryproButton
export default BuyCryptoButton
4 changes: 2 additions & 2 deletions src/components/dashboard/Overview/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { UrlObject } from 'url'
import { useVisibleBalances } from '@/hooks/useVisibleBalances'
import ArrowIconNW from '@/public/images/common/arrow-top-right.svg'
import ArrowIconSE from '@/public/images/common/arrow-se.svg'
import BuyCryproButton from '@/components/common/BuyCryproButton'
import BuyCryptoButton from '@/components/common/BuyCryptoButton'

const ValueSkeleton = () => <Skeleton variant="text" width={20} />

Expand Down Expand Up @@ -182,7 +182,7 @@ const Overview = (): ReactElement => {
<Grid item mt="auto">
<Grid container mt={3} spacing={1} flexWrap="wrap">
<Grid item xs={12} sm="auto">
<BuyCryproButton />
<BuyCryptoButton />
</Grid>

<Grid item xs={6} sm="auto">
Expand Down

0 comments on commit f2aa20a

Please sign in to comment.