datajunction-ui 0.0.1-rc.5 → 0.0.1-rc.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/app/index.tsx +22 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datajunction-ui",
3
- "version": "0.0.1-rc.5",
3
+ "version": "0.0.1-rc.6",
4
4
  "description": "DataJunction Metrics Platform UI",
5
5
  "module": "src/index.tsx",
6
6
  "repository": {
package/src/app/index.tsx CHANGED
@@ -30,31 +30,29 @@ export function App() {
30
30
  content="DataJunction serves as a semantic layer to help manage metrics"
31
31
  />
32
32
  </Helmet>
33
- <DJClientContext.Provider value={{ DataJunctionAPI: DataJunctionAPI }}>
34
- <Routes>
35
- <Route
36
- path="/"
37
- element={<Root />}
38
- children={
39
- <>
40
- <Route path="nodes" key="nodes">
41
- <Route path=":name" element={<NodePage djClient={ DJClient.DataJunctionAPI } />} />
42
- </Route>
33
+ <Routes>
34
+ <Route
35
+ path="/"
36
+ element={<Root />}
37
+ children={
38
+ <>
39
+ <Route path="nodes" key="nodes">
40
+ <Route path=":name" element={<NodePage djClient={ DJClient.DataJunctionAPI } />} />
41
+ </Route>
43
42
 
44
- <Route path="/" element={<ListNamespacesPage djClient={ DJClient.DataJunctionAPI }/>} key="index" />
45
- <Route path="namespaces">
46
- <Route
47
- path=":namespace"
48
- element={<NamespacePage djClient={ DJClient.DataJunctionAPI }/>}
49
- key="namespaces"
50
- />
51
- </Route>
52
- </>
53
- }
54
- />
55
- <Route path="*" element={<NotFoundPage />} />
56
- </Routes>
57
- </DJClientContext.Provider>
43
+ <Route path="/" element={<ListNamespacesPage djClient={ DJClient.DataJunctionAPI }/>} key="index" />
44
+ <Route path="namespaces">
45
+ <Route
46
+ path=":namespace"
47
+ element={<NamespacePage djClient={ DJClient.DataJunctionAPI }/>}
48
+ key="namespaces"
49
+ />
50
+ </Route>
51
+ </>
52
+ }
53
+ />
54
+ <Route path="*" element={<NotFoundPage />} />
55
+ </Routes>
58
56
  </BrowserRouter>
59
57
  );
60
58
  }