Skip to content

Commit

Permalink
fix: typo 'Alchemy Pay'
Browse files Browse the repository at this point in the history
  • Loading branch information
slient-coder committed May 13, 2024
1 parent b985d34 commit 60c6ff6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
File renamed without changes
9 changes: 4 additions & 5 deletions src/shared/constant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ export const UNCONFIRMED_HEIGHT = 4194303;

export enum PaymentChannelType {
MoonPay = 'moonpay',
AlchePay = 'alchepay',

AlchemyPay = 'alchemypay',
Transak = 'transak'
}

Expand All @@ -309,9 +308,9 @@ export const PAYMENT_CHANNELS = {
name: 'MoonPay',
img: './images/artifacts/moonpay.png'
},
alchepay: {
name: 'AlchePay',
img: './images/artifacts/alchepay.png'
alchemypay: {
name: 'Alchemy Pay',
img: './images/artifacts/alchemypay.png'
},

transak: {
Expand Down
10 changes: 5 additions & 5 deletions src/ui/pages/BuyBTC/BuyBTCModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function PaymentItem(props: { channelType: PaymentChannelType; onClick }) {

export const BuyBTCModal = ({ onClose }: { onClose: () => void }) => {
const [disclaimerModalVisible, setDisclaimerModalVisible] = useState(false);
const [channelType, setChannelType] = useState<PaymentChannelType>(PaymentChannelType.AlchePay);
const [channelType, setChannelType] = useState<PaymentChannelType>(PaymentChannelType.AlchemyPay);

const [channels, setChannels] = useState<string[]>([]);
const wallet = useWallet();
Expand All @@ -46,7 +46,7 @@ export const BuyBTCModal = ({ onClose }: { onClose: () => void }) => {

const isMoonpayEnabled = channels.includes(PaymentChannelType.MoonPay);
const isTransakEnabled = channels.includes(PaymentChannelType.Transak);
const isAlchePayEnabled = channels.includes(PaymentChannelType.AlchePay);
const isAlchemyPayEnabled = channels.includes(PaymentChannelType.AlchemyPay);

return (
<BottomModal onClose={onClose}>
Expand Down Expand Up @@ -77,11 +77,11 @@ export const BuyBTCModal = ({ onClose }: { onClose: () => void }) => {
/>
) : null}

{isAlchePayEnabled ? (
{isAlchemyPayEnabled ? (
<PaymentItem
channelType={PaymentChannelType.AlchePay}
channelType={PaymentChannelType.AlchemyPay}
onClick={() => {
setChannelType(PaymentChannelType.AlchePay);
setChannelType(PaymentChannelType.AlchemyPay);
setDisclaimerModalVisible(true);
}}
/>
Expand Down

0 comments on commit 60c6ff6

Please sign in to comment.