From 2ddc940d264cee11b6876833ea3f1c4a58acac78 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 20 Feb 2024 19:46:06 +0530 Subject: [PATCH] fix linting --- .../lib/components/instanceContainerUI.tsx | 62 +++++++++---------- .../src/lib/components/universalDappUI.tsx | 8 +-- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/libs/remix-ui/run-tab/src/lib/components/instanceContainerUI.tsx b/libs/remix-ui/run-tab/src/lib/components/instanceContainerUI.tsx index 0edf2252f7..8c5b8420f6 100644 --- a/libs/remix-ui/run-tab/src/lib/components/instanceContainerUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/instanceContainerUI.tsx @@ -10,7 +10,7 @@ export function InstanceContainerUI(props: InstanceContainerProps) { useEffect(() => { const fetchSavedContracts = async () => { - let allSavedContracts = localStorage.getItem('savedContracts') + const allSavedContracts = localStorage.getItem('savedContracts') if (allSavedContracts) { const savedContracts = JSON.parse(allSavedContracts) const { network } = await props.plugin.call('blockchain', 'getCurrentNetworkStatus') @@ -22,8 +22,8 @@ export function InstanceContainerUI(props: InstanceContainerProps) { await props.plugin.call('udapp', 'addSavedInstance', inst.address, inst.contractData.abi, inst.name) } } - } - fetchSavedContracts() + } + fetchSavedContracts() }, [props.plugin.REACT_API.networkName]) const clearInstance = () => { @@ -39,34 +39,34 @@ export function InstanceContainerUI(props: InstanceContainerProps) { - {props.savedInstances.instanceList.length > 0 ? ( -
- {' '} - {props.savedInstances.instanceList.map((instance, index) => { - return ( - - ) - })} -
- ) : ( - - - - )} + {props.savedInstances.instanceList.length > 0 ? ( +
+ {' '} + {props.savedInstances.instanceList.map((instance, index) => { + return ( + + ) + })} +
+ ) : ( + + + + )}
}> diff --git a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx index 977c012962..88253d2ec3 100644 --- a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx @@ -122,7 +122,7 @@ export function UniversalDappUI(props: UdappProps) { const saveContract = async() => { const env = await props.plugin.call('blockchain', 'getProvider') const {network} = await props.plugin.call('blockchain', 'getCurrentNetworkStatus') - let savedContracts = localStorage.getItem('savedContracts') + const savedContracts = localStorage.getItem('savedContracts') let objToSave if (!savedContracts) { objToSave = {} @@ -266,11 +266,11 @@ export function UniversalDappUI(props: UdappProps) { { !props.isSavedContract ? ( }> - + ) : ( }> - - )} + + )}