diff --git a/examples/cloud_provider/production_react_netlify/src/components/Account.tsx b/examples/cloud_provider/production_react_netlify/src/components/Account.tsx index 6a6345e..8324312 100644 --- a/examples/cloud_provider/production_react_netlify/src/components/Account.tsx +++ b/examples/cloud_provider/production_react_netlify/src/components/Account.tsx @@ -7,20 +7,16 @@ const Account = () => { const { activeAddress } = useWallet() const algoConfig = getAlgodConfigFromViteEnvironment() - const dappFlowNetworkName = useMemo(() => { - return algoConfig.network === '' ? 'sandbox' : algoConfig.network.toLocaleLowerCase() + const networkName = useMemo(() => { + return algoConfig.network === '' ? 'localnet' : algoConfig.network.toLocaleLowerCase() }, [algoConfig.network]) return (
- + Address: {ellipseAddress(activeAddress)} -
Network: {algoConfig.network === '' ? 'localnet' : algoConfig.network}
+
Network: {networkName}
) } diff --git a/examples/cloud_provider/production_react_vercel/src/components/Account.tsx b/examples/cloud_provider/production_react_vercel/src/components/Account.tsx index 6a6345e..8324312 100644 --- a/examples/cloud_provider/production_react_vercel/src/components/Account.tsx +++ b/examples/cloud_provider/production_react_vercel/src/components/Account.tsx @@ -7,20 +7,16 @@ const Account = () => { const { activeAddress } = useWallet() const algoConfig = getAlgodConfigFromViteEnvironment() - const dappFlowNetworkName = useMemo(() => { - return algoConfig.network === '' ? 'sandbox' : algoConfig.network.toLocaleLowerCase() + const networkName = useMemo(() => { + return algoConfig.network === '' ? 'localnet' : algoConfig.network.toLocaleLowerCase() }, [algoConfig.network]) return (
- + Address: {ellipseAddress(activeAddress)} -
Network: {algoConfig.network === '' ? 'localnet' : algoConfig.network}
+
Network: {networkName}
) } diff --git a/examples/production_react/src/components/Account.tsx b/examples/production_react/src/components/Account.tsx index 6a6345e..8324312 100644 --- a/examples/production_react/src/components/Account.tsx +++ b/examples/production_react/src/components/Account.tsx @@ -7,20 +7,16 @@ const Account = () => { const { activeAddress } = useWallet() const algoConfig = getAlgodConfigFromViteEnvironment() - const dappFlowNetworkName = useMemo(() => { - return algoConfig.network === '' ? 'sandbox' : algoConfig.network.toLocaleLowerCase() + const networkName = useMemo(() => { + return algoConfig.network === '' ? 'localnet' : algoConfig.network.toLocaleLowerCase() }, [algoConfig.network]) return (
- + Address: {ellipseAddress(activeAddress)} -
Network: {algoConfig.network === '' ? 'localnet' : algoConfig.network}
+
Network: {networkName}
) } diff --git a/examples/starter_react/src/components/Account.tsx b/examples/starter_react/src/components/Account.tsx index 6a6345e..8324312 100644 --- a/examples/starter_react/src/components/Account.tsx +++ b/examples/starter_react/src/components/Account.tsx @@ -7,20 +7,16 @@ const Account = () => { const { activeAddress } = useWallet() const algoConfig = getAlgodConfigFromViteEnvironment() - const dappFlowNetworkName = useMemo(() => { - return algoConfig.network === '' ? 'sandbox' : algoConfig.network.toLocaleLowerCase() + const networkName = useMemo(() => { + return algoConfig.network === '' ? 'localnet' : algoConfig.network.toLocaleLowerCase() }, [algoConfig.network]) return (
- + Address: {ellipseAddress(activeAddress)} -
Network: {algoConfig.network === '' ? 'localnet' : algoConfig.network}
+
Network: {networkName}
) } diff --git a/template_content/src/components/Account.tsx b/template_content/src/components/Account.tsx index 6a6345e..8324312 100644 --- a/template_content/src/components/Account.tsx +++ b/template_content/src/components/Account.tsx @@ -7,20 +7,16 @@ const Account = () => { const { activeAddress } = useWallet() const algoConfig = getAlgodConfigFromViteEnvironment() - const dappFlowNetworkName = useMemo(() => { - return algoConfig.network === '' ? 'sandbox' : algoConfig.network.toLocaleLowerCase() + const networkName = useMemo(() => { + return algoConfig.network === '' ? 'localnet' : algoConfig.network.toLocaleLowerCase() }, [algoConfig.network]) return (
- + Address: {ellipseAddress(activeAddress)} -
Network: {algoConfig.network === '' ? 'localnet' : algoConfig.network}
+
Network: {networkName}
) }