create-middag-ui 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/scaffold.js +6 -8
- package/package.json +1 -1
package/lib/scaffold.js
CHANGED
|
@@ -829,7 +829,7 @@ createRoot(document.getElementById("root")!).render(
|
|
|
829
829
|
writeFile(appPath, `import { useEffect } from "react";
|
|
830
830
|
import { BrowserRouter, Routes, Route, useNavigate } from "react-router";
|
|
831
831
|
import { ContractPage, I18nProvider } from "@middag-io/react";
|
|
832
|
-
import {
|
|
832
|
+
import { MockPageProvider, MockI18nProvider } from "@middag-io/react/mock";
|
|
833
833
|
import type { PageContract } from "@middag-io/react";
|
|
834
834
|
import { dashboardContract } from "./pages/dashboard";
|
|
835
835
|
import { connectorsContract } from "./pages/connectors";
|
|
@@ -880,13 +880,11 @@ export function App() {
|
|
|
880
880
|
<I18nProvider>
|
|
881
881
|
<BrowserRouter>
|
|
882
882
|
<NavigateBridge />
|
|
883
|
-
<
|
|
884
|
-
<
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
</Routes>
|
|
889
|
-
</HostAdapter>
|
|
883
|
+
<Routes>
|
|
884
|
+
<Route path="/" element={<MockRoute contract={dashboardContract} activeKey="overview.dashboard" />} />
|
|
885
|
+
<Route path="/connectors" element={<MockRoute contract={connectorsContract} activeKey="integration.connectors" />} />
|
|
886
|
+
<Route path="/settings" element={<MockRoute contract={settingsContract} activeKey="system.settings" />} />
|
|
887
|
+
</Routes>
|
|
890
888
|
</BrowserRouter>
|
|
891
889
|
</I18nProvider>
|
|
892
890
|
</MockPageProvider>
|