Update wallet connect meta data while signing in
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m34s

This commit is contained in:
Shreerang Kale 2024-10-29 19:19:33 +05:30
parent 97354f35a1
commit eb9c14dce3
4 changed files with 107 additions and 105 deletions

View File

@ -70,7 +70,7 @@ const Configure = () => {
maxPrice: DEFAULT_MAX_PRICE,
lrn: '',
numProviders: 1,
variables: []
variables: [],
},
});
@ -271,7 +271,7 @@ const Configure = () => {
);
}
} catch (error) {
console.error(error)
console.error(error);
toast({
id: 'error-deploying-app',
title: 'Error deploying app',
@ -292,10 +292,13 @@ const Configure = () => {
setSelectedAccount(account);
}, []);
const onDeployerChange = useCallback((selectedLrn: string) => {
const onDeployerChange = useCallback(
(selectedLrn: string) => {
const deployer = deployers.find((d) => d.deployerLrn === selectedLrn);
setSelectedDeployer(deployer);
}, [deployers]);
},
[deployers],
);
const cosmosSendTokensHandler = useCallback(
async (selectedAccount: string, amount: string) => {
@ -507,8 +510,7 @@ const Configure = () => {
<EnvironmentVariablesForm />
</div>
{selectedOption === 'LRN' &&
!selectedDeployer?.minimumPayment ? (
{selectedOption === 'LRN' && !selectedDeployer?.minimumPayment ? (
<div>
<Button
{...buttonSize}

View File

@ -31,8 +31,8 @@ const axiosInstance = axios.create({
withCredentials: true,
});
const metadata = {
name: 'Web3Modal',
description: 'Snowball Web3Modal',
name: 'Deploy App Auth',
description: '',
url: window.location.origin,
icons: ['https://avatars.githubusercontent.com/u/37784886'],
};

View File

@ -41,7 +41,7 @@ const deployment: Deployment = {
deployerId: 'bafyreicrtgmkir4evvvysxdqxddf2ftdq2wrzuodgvwnxr4rmubi4obdfu',
deployerLrn: 'lrn://example/deployers/webapp-deployer-api.example.com',
minimumPayment: '1000alnt',
baseDomain: 'pwa.example.com'
baseDomain: 'pwa.example.com',
},
status: DeploymentStatus.Ready,
createdBy: {

View File

@ -107,7 +107,7 @@ export const deployment0: Deployment = {
deployerId: 'bafyreicrtgmkir4evvvysxdqxddf2ftdq2wrzuodgvwnxr4rmubi4obdfu',
deployerLrn: 'lrn://deployer.apps.snowballtools.com ',
minimumPayment: '1000alnt',
baseDomain: 'pwa.example.com'
baseDomain: 'pwa.example.com',
},
applicationDeploymentRequestId:
'bafyreiaycvq6imoppnpwdve4smj6t6ql5svt5zl3x6rimu4qwyzgjorize',
@ -135,7 +135,7 @@ export const project: Project = {
deployerId: 'bafyreicrtgmkir4evvvysxdqxddf2ftdq2wrzuodgvwnxr4rmubi4obdfu',
deployerLrn: 'lrn://deployer.apps.snowballtools.com ',
minimumPayment: '1000alnt',
baseDomain: 'pwa.example.com'
baseDomain: 'pwa.example.com',
},
],
paymentAddress: '0x657868687686rb4787987br8497298r79284797487',