feat: adjust wallet styles and translations (#1611)
This commit is contained in:
parent
15e6c4ffef
commit
7863384974
@ -54,7 +54,7 @@ export const VegaConnectDialog = ({
|
|||||||
if (loading || !data) {
|
if (loading || !data) {
|
||||||
return (
|
return (
|
||||||
<ConnectDialogContent>
|
<ConnectDialogContent>
|
||||||
<ConnectDialogTitle>{t('Fetchign chain ID')}</ConnectDialogTitle>
|
<ConnectDialogTitle>{t('Fetching chain ID')}</ConnectDialogTitle>
|
||||||
<div className="flex justify-center items-center my-6">
|
<div className="flex justify-center items-center my-6">
|
||||||
<Loader />
|
<Loader />
|
||||||
</div>
|
</div>
|
||||||
@ -161,6 +161,40 @@ const ConnectorList = ({
|
|||||||
<>
|
<>
|
||||||
<ConnectDialogContent>
|
<ConnectDialogContent>
|
||||||
<ConnectDialogTitle>{t('Connect')}</ConnectDialogTitle>
|
<ConnectDialogTitle>{t('Connect')}</ConnectDialogTitle>
|
||||||
|
{urlInputExpanded ? (
|
||||||
|
<>
|
||||||
|
<p className="mb-2 text-neutral-600 dark:text-neutral-400">
|
||||||
|
{t('Custom wallet location')}
|
||||||
|
</p>
|
||||||
|
<FormGroup
|
||||||
|
labelFor="wallet-url"
|
||||||
|
label={t('Custom wallet location')}
|
||||||
|
hideLabel={true}
|
||||||
|
>
|
||||||
|
<Input
|
||||||
|
value={walletUrl}
|
||||||
|
onChange={(e) => setWalletUrl(e.target.value)}
|
||||||
|
name="wallet-url"
|
||||||
|
/>
|
||||||
|
</FormGroup>
|
||||||
|
<p className="mb-2 text-neutral-600 dark:text-neutral-400">
|
||||||
|
{t('Choose wallet app to connect')}
|
||||||
|
</p>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<p className="mb-6 text-neutral-600 dark:text-neutral-400">
|
||||||
|
{t(
|
||||||
|
'Choose wallet app to connect, or to change port or server URL enter a '
|
||||||
|
)}
|
||||||
|
<button
|
||||||
|
className="underline"
|
||||||
|
onClick={() => setUrlInputExpanded(true)}
|
||||||
|
>
|
||||||
|
{t('custom wallet location')}
|
||||||
|
</button>{' '}
|
||||||
|
{t(' first')}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
<ul data-testid="connectors-list" className="mb-6">
|
<ul data-testid="connectors-list" className="mb-6">
|
||||||
<li className="mb-4">
|
<li className="mb-4">
|
||||||
<ConnectionOption
|
<ConnectionOption
|
||||||
@ -177,7 +211,7 @@ const ConnectorList = ({
|
|||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
{!isMainnet && (
|
{!isMainnet && (
|
||||||
<li className="mb-0">
|
<li className="mb-0 border-t pt-4">
|
||||||
<ConnectionOption
|
<ConnectionOption
|
||||||
type="hosted"
|
type="hosted"
|
||||||
text={t('Hosted Fairground wallet')}
|
text={t('Hosted Fairground wallet')}
|
||||||
@ -186,26 +220,6 @@ const ConnectorList = ({
|
|||||||
</li>
|
</li>
|
||||||
)}
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
{urlInputExpanded ? (
|
|
||||||
<FormGroup label={t('Wallet location')} labelFor="wallet-url">
|
|
||||||
<Input
|
|
||||||
value={walletUrl}
|
|
||||||
onChange={(e) => setWalletUrl(e.target.value)}
|
|
||||||
name="wallet-url"
|
|
||||||
/>
|
|
||||||
</FormGroup>
|
|
||||||
) : (
|
|
||||||
<p className="mb-6 text-center text-neutral-600 dark:text-neutral-400">
|
|
||||||
{t('Or')}{' '}
|
|
||||||
<button
|
|
||||||
className="underline"
|
|
||||||
onClick={() => setUrlInputExpanded(true)}
|
|
||||||
>
|
|
||||||
{t('enter a custom wallet location')}
|
|
||||||
</button>{' '}
|
|
||||||
{t('to change port or service URL')}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
</ConnectDialogContent>
|
</ConnectDialogContent>
|
||||||
<ConnectDialogFooter />
|
<ConnectDialogFooter />
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user