Skip to content

Commit

Permalink
remove loading view
Browse files Browse the repository at this point in the history
  • Loading branch information
Melisa Anabella Rossi committed Dec 28, 2023
1 parent d79f012 commit fed1be5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 21 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@dcl/explorer-website",
"version": "0.1.0",
"private": true,
"homepage": "https://decentraland.org/",
"homepage": "",
"scripts": {
"start": "react-app-rewired start",
"start:linked": "NODE_ENV=development react-app-rewired start",
Expand Down Expand Up @@ -51,7 +51,7 @@
"decentraland-gatsby": "^5.98.0",
"decentraland-ui": "^4.31.0",
"detect-browser": "^5.2.0",
"eth-connect": "^6.1.0",
"eth-connect": "^6.2.2",
"md5-file": "^5.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
4 changes: 2 additions & 2 deletions public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@dcl/explorer-website",
"version": "0.1.0",
"description": "The website for decentraland's explorer ",
"homepage": "https://decentraland.org/",
"homepage": "",
"main": "website.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand All @@ -16,4 +16,4 @@
"bugs": {
"url": "https://github.com/decentraland/explorer-website/issues"
}
}
}
8 changes: 0 additions & 8 deletions src/components/start/Start.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
#gameContainer {
display: none;
}

#root {
position: fixed;
}

#root-loading {
display: none;
}

.explorer-website-start {
position: fixed;
width: 100vw;
Expand Down
5 changes: 5 additions & 0 deletions src/components/start/Start.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export default function Start(props: Props) {
const [initialized, setInitialized] = useState(false)

useEffect(() => {
// remove loading component
const loadingElement = document.getElementById('root-loading')
if (loadingElement) {
loadingElement.style.display = 'none'
}
if (isConnecting) {
setInitialized(true)
}
Expand Down
4 changes: 2 additions & 2 deletions src/eth/provider.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ConnectionResponse, Provider } from 'decentraland-connect/dist/types'
import { connection } from 'decentraland-connect/dist/ConnectionManager'
import { ProviderAdapter } from 'decentraland-connect/dist/ProviderAdapter'
import { WebSocketProvider } from 'eth-connect/providers/WebSocketProvider'
import { WebSocketProvider } from 'eth-connect'
import { ChainId } from '@dcl/schemas/dist/dapps/chain-id'
import { ProviderType } from '@dcl/schemas/dist/dapps/provider-type'
import { switchProviderChainId } from 'decentraland-dapps/dist/modules/wallet/utils/switchProviderChainId'
Expand Down Expand Up @@ -80,4 +80,4 @@ function delay(millis: number): Promise<null> {
return new Promise(resolve => {
setTimeout(() => resolve(null), millis)
})
}
}

0 comments on commit fed1be5

Please sign in to comment.