Skip to content

Commit 3de40ca

Browse files
authored
Merge pull request #37 from algorandfoundation/use-lora
chore: use lora for exploring
2 parents 7d032a3 + ddc9a69 commit 3de40ca

File tree

5 files changed

+20
-40
lines changed

5 files changed

+20
-40
lines changed

examples/cloud_provider/production_react_netlify/src/components/Account.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ const Account = () => {
77
const { activeAddress } = useWallet()
88
const algoConfig = getAlgodConfigFromViteEnvironment()
99

10-
const dappFlowNetworkName = useMemo(() => {
11-
return algoConfig.network === '' ? 'sandbox' : algoConfig.network.toLocaleLowerCase()
10+
const networkName = useMemo(() => {
11+
return algoConfig.network === '' ? 'localnet' : algoConfig.network.toLocaleLowerCase()
1212
}, [algoConfig.network])
1313

1414
return (
1515
<div>
16-
<a
17-
className="text-xl"
18-
target="_blank"
19-
href={`https://app.dappflow.org/setnetwork?name=${dappFlowNetworkName}&redirect=explorer/account/${activeAddress}/`}
20-
>
16+
<a className="text-xl" target="_blank" href={`https://lora.algokit.io/${networkName}/account/${activeAddress}/`}>
2117
Address: {ellipseAddress(activeAddress)}
2218
</a>
23-
<div className="text-xl">Network: {algoConfig.network === '' ? 'localnet' : algoConfig.network}</div>
19+
<div className="text-xl">Network: {networkName}</div>
2420
</div>
2521
)
2622
}

examples/cloud_provider/production_react_vercel/src/components/Account.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ const Account = () => {
77
const { activeAddress } = useWallet()
88
const algoConfig = getAlgodConfigFromViteEnvironment()
99

10-
const dappFlowNetworkName = useMemo(() => {
11-
return algoConfig.network === '' ? 'sandbox' : algoConfig.network.toLocaleLowerCase()
10+
const networkName = useMemo(() => {
11+
return algoConfig.network === '' ? 'localnet' : algoConfig.network.toLocaleLowerCase()
1212
}, [algoConfig.network])
1313

1414
return (
1515
<div>
16-
<a
17-
className="text-xl"
18-
target="_blank"
19-
href={`https://app.dappflow.org/setnetwork?name=${dappFlowNetworkName}&redirect=explorer/account/${activeAddress}/`}
20-
>
16+
<a className="text-xl" target="_blank" href={`https://lora.algokit.io/${networkName}/account/${activeAddress}/`}>
2117
Address: {ellipseAddress(activeAddress)}
2218
</a>
23-
<div className="text-xl">Network: {algoConfig.network === '' ? 'localnet' : algoConfig.network}</div>
19+
<div className="text-xl">Network: {networkName}</div>
2420
</div>
2521
)
2622
}

examples/production_react/src/components/Account.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ const Account = () => {
77
const { activeAddress } = useWallet()
88
const algoConfig = getAlgodConfigFromViteEnvironment()
99

10-
const dappFlowNetworkName = useMemo(() => {
11-
return algoConfig.network === '' ? 'sandbox' : algoConfig.network.toLocaleLowerCase()
10+
const networkName = useMemo(() => {
11+
return algoConfig.network === '' ? 'localnet' : algoConfig.network.toLocaleLowerCase()
1212
}, [algoConfig.network])
1313

1414
return (
1515
<div>
16-
<a
17-
className="text-xl"
18-
target="_blank"
19-
href={`https://app.dappflow.org/setnetwork?name=${dappFlowNetworkName}&redirect=explorer/account/${activeAddress}/`}
20-
>
16+
<a className="text-xl" target="_blank" href={`https://lora.algokit.io/${networkName}/account/${activeAddress}/`}>
2117
Address: {ellipseAddress(activeAddress)}
2218
</a>
23-
<div className="text-xl">Network: {algoConfig.network === '' ? 'localnet' : algoConfig.network}</div>
19+
<div className="text-xl">Network: {networkName}</div>
2420
</div>
2521
)
2622
}

examples/starter_react/src/components/Account.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ const Account = () => {
77
const { activeAddress } = useWallet()
88
const algoConfig = getAlgodConfigFromViteEnvironment()
99

10-
const dappFlowNetworkName = useMemo(() => {
11-
return algoConfig.network === '' ? 'sandbox' : algoConfig.network.toLocaleLowerCase()
10+
const networkName = useMemo(() => {
11+
return algoConfig.network === '' ? 'localnet' : algoConfig.network.toLocaleLowerCase()
1212
}, [algoConfig.network])
1313

1414
return (
1515
<div>
16-
<a
17-
className="text-xl"
18-
target="_blank"
19-
href={`https://app.dappflow.org/setnetwork?name=${dappFlowNetworkName}&redirect=explorer/account/${activeAddress}/`}
20-
>
16+
<a className="text-xl" target="_blank" href={`https://lora.algokit.io/${networkName}/account/${activeAddress}/`}>
2117
Address: {ellipseAddress(activeAddress)}
2218
</a>
23-
<div className="text-xl">Network: {algoConfig.network === '' ? 'localnet' : algoConfig.network}</div>
19+
<div className="text-xl">Network: {networkName}</div>
2420
</div>
2521
)
2622
}

template_content/src/components/Account.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ const Account = () => {
77
const { activeAddress } = useWallet()
88
const algoConfig = getAlgodConfigFromViteEnvironment()
99

10-
const dappFlowNetworkName = useMemo(() => {
11-
return algoConfig.network === '' ? 'sandbox' : algoConfig.network.toLocaleLowerCase()
10+
const networkName = useMemo(() => {
11+
return algoConfig.network === '' ? 'localnet' : algoConfig.network.toLocaleLowerCase()
1212
}, [algoConfig.network])
1313

1414
return (
1515
<div>
16-
<a
17-
className="text-xl"
18-
target="_blank"
19-
href={`https://app.dappflow.org/setnetwork?name=${dappFlowNetworkName}&redirect=explorer/account/${activeAddress}/`}
20-
>
16+
<a className="text-xl" target="_blank" href={`https://lora.algokit.io/${networkName}/account/${activeAddress}/`}>
2117
Address: {ellipseAddress(activeAddress)}
2218
</a>
23-
<div className="text-xl">Network: {algoConfig.network === '' ? 'localnet' : algoConfig.network}</div>
19+
<div className="text-xl">Network: {networkName}</div>
2420
</div>
2521
)
2622
}

0 commit comments

Comments
 (0)