diff --git a/alem.config.json b/alem.config.json index d18095ca..ad117dc9 100644 --- a/alem.config.json +++ b/alem.config.json @@ -23,6 +23,9 @@ } }, "options": { - "keepRoute": false + "keepRoute": false, + "createLoaderWidget": true, + "loadingComponentFile": "src/components/SuspenseLoading.tsx", + "loadingComponentName": "SuspenseLoading" } } diff --git a/package.json b/package.json index 4dc79149..96cedf4f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "deploy:testnet": "npm run build; alem deploy --network testnet" }, "dependencies": { - "alem": "1.0.0-beta.27" + "alem": "1.0.0-beta.28" }, "devDependencies": { "@types/styled-components": "^5.1.26", diff --git a/src/Main.tsx b/src/Main.tsx index a5c0b53e..cb2c62f1 100644 --- a/src/Main.tsx +++ b/src/Main.tsx @@ -1,17 +1,19 @@ import { ModulesProvider } from "alem"; import Nav from "./components/Nav/Nav"; import Routes from "./routes/Routes"; -import DonationsInfoProvider from "./contexts/DonationsInfoProvider"; +// import DonationsInfoProvider from "./contexts/DonationsInfoProvider"; const Main = () => { return ( - + // + <>