Skip to content

Commit

Permalink
Merge pull request #462 from provenance-io/jarryd/461/remove-maintena…
Browse files Browse the repository at this point in the history
…nce-page

Removes maintenance page from Explorer
  • Loading branch information
jarrydallison authored Dec 6, 2022
2 parents b195d0e + 5e7f874 commit 504ed9c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### Features
- Add Figure test wallets to User Login component #445
- Add maintenance page #371
- Remove maintenance page from being the only displayed page #461

## Kurbat Ivanov

Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,14 @@
"build:stats": "react-scripts build -- --stats",
"preversion": "npm run script:linkify",
"test": "react-scripts test",
"test:all": "npm run lint",
"test:all": "npm run lint && npm run test:cov && npm run test:e2e:run",
"test:cov": "npm run test -- --watchAll=false --coverage",
"test:cov:all": "npm run test:cov && npm run test:e2e:run && npm run clean:nyc && npm run test:cov:mv && npm run test:cov:merge && npm run test:cov:report",
"test:cov:merge": "npm run clean:cov && nyc merge .nyc_output coverage-all/coverage-final.json",
"test:cov:mv": "cp ./coverage/coverage-final.json .nyc_output/unit.json && cp ./coverage-cypress/coverage-final.json .nyc_output/e2e.json",
"test:cov:report": "nyc report --reporter=lcov --report-dir=coverage-all",
"test:e2e": "start-test start:cli 3000 cy:open",
"test:e2e:run": "start-test start:cli http-get://localhost:3000 cy:run",
"eject": "react-scripts eject",
"stats": "npm run build:stats && webpack-bundle-analyzer --port 4200 build/bundle-stats.json",
"analyze": "npm run build && source-map-explorer build/static/js/*.js --only-mapped",
Expand Down
11 changes: 8 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@ import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { WalletConnectContextProvider } from '@provenanceio/walletconnect-js';
import { store } from 'redux/app/store';
import { Maintenance } from 'Pages';
// eslint-disable-next-line
import { Maintenance } from 'Pages';
import App from './App';

/* Note: during maintenance cycles, update the tests in package.json
to only run the linter. Show Maintenance component here
instead of the App component.
*/

ReactDOM.render(
<Provider store={store()}>
<WalletConnectContextProvider>
{/* <App /> */}
<Maintenance />
<App />
{/* <Maintenance /> */}
</WalletConnectContextProvider>
</Provider>,
document.getElementById('root')
Expand Down

0 comments on commit 504ed9c

Please sign in to comment.