Merge branch 'discover-mints' into 'main'

Add Discover Mints link to Create New Wallet

See merge request soapbox-pub/soapbox!3369
merge-requests/3369/merge
Mary Kate 2025-05-08 17:32:22 +00:00
commit 76906089e2
2 zmienionych plików z 25 dodań i 12 usunięć

Wyświetl plik

@ -1,4 +1,5 @@
import helpIcon from '@tabler/icons/outline/help-circle.svg';
import IconSquareArrowRight from '@tabler/icons/outline/square-arrow-right.svg';
import plusIcon from '@tabler/icons/outline/square-rounded-plus.svg';
import { useState } from 'react';
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
@ -95,6 +96,7 @@ const CreateWallet = () => {
<Stack space={5} className='w-full'>
<Form onSubmit={handleSubmit}>
<Stack className='rounded-lg p-4'>
<HStack alignItems='center' justifyContent='between' space={2}>
<HStack alignItems='center' space={2}>
<Text
size='lg'
@ -109,6 +111,16 @@ const CreateWallet = () => {
</div>
</Tooltip>
</HStack>
<a
href='https://bitcoinmints.com/?tab=mints'
target='_blank'
rel='noopener noreferrer'
className='flex items-center space-x-1 text-primary-500 hover:underline dark:text-primary-400'
>
<FormattedMessage id='wallet.discover_mints' defaultMessage='Discover Mints' />
<Icon src={IconSquareArrowRight} className='ml-2 size-4 text-primary-500 dark:text-primary-400' />
</a>
</HStack>
<div>
<MintEditor items={mints} setItems={setMints} />
</div>

Wyświetl plik

@ -1732,6 +1732,7 @@
"wallet.create.question": "Do you want create one?",
"wallet.create.success": "Wallet created successfully!",
"wallet.create.title": "You don't have a wallet",
"wallet.discover_mints": "Discover Mints",
"wallet.error": "Failed to update.",
"wallet.hidden.balance": "••••••",
"wallet.invalid_url": "All strings must be valid URLs.",