Skip to content

Commit

Permalink
feat(fe): update copy, copy btn (#7116)
Browse files Browse the repository at this point in the history
* feat: update copy, copy btn

* chore: remove unintended box-flex switch
  • Loading branch information
KenLSM authored Mar 4, 2024
1 parent e0d6ac4 commit 3747f92
Showing 1 changed file with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMemo, useState } from 'react'
import { useParams } from 'react-router-dom'
import { Box, Center, Container } from '@chakra-ui/react'
import { Box, Center, Container, Flex, Stack, Text } from '@chakra-ui/react'
import { Elements, useStripe } from '@stripe/react-stripe-js'
import { loadStripe } from '@stripe/stripe-js'

Expand All @@ -11,6 +11,7 @@ import {
} from '~shared/types'

import InlineMessage from '~components/InlineMessage'
import { CopyButton } from '~templates/CopyButton'

import { useEnv } from '~features/env/queries'

Expand Down Expand Up @@ -155,9 +156,22 @@ const StripePaymentContainer = ({
<PaymentFormWrapper>
{secretEnv === 'production' ? null : (
<InlineMessage variant="warning" mb="1rem">
Use '4242 4242 4242 4242' as your card number to test payments
on this form. Payments made on this form will only show in
test mode in Stripe.
<Stack>
<Text>
Make a test payment with the card number below! Payments
made on this form will only show in test mode in Stripe.
</Text>
<Flex align="center">
<Text mr="0.25rem">4242 4242 4242 4242</Text>
<Flex boxSize="1.5rem" align="center" justify="center">
<CopyButton
colorScheme="secondary"
stringToCopy={`4242424242424242`}
aria-label="Copy test card number"
/>
</Flex>
</Flex>
</Stack>
</InlineMessage>
)}
<PaymentStack>
Expand Down

0 comments on commit 3747f92

Please sign in to comment.