File tree Expand file tree Collapse file tree 5 files changed +20
-40
lines changed
production_react_netlify/src/components
production_react_vercel/src/components
production_react/src/components
starter_react/src/components
template_content/src/components Expand file tree Collapse file tree 5 files changed +20
-40
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments