-
+
} />
>
diff --git a/ui/src/app/dashboard/view/Dashboard.js b/ui/src/app/dashboard/view/Dashboard.js
index ba6e667dc..ab125e7e5 100644
--- a/ui/src/app/dashboard/view/Dashboard.js
+++ b/ui/src/app/dashboard/view/Dashboard.js
@@ -20,7 +20,7 @@ import { faSpinner } from '@fortawesome/free-solid-svg-icons';
export function Dashboard () {
- const { path } = useRouteMatch();
+ const { path, url } = useRouteMatch();
const location = useLocation();
const isAdmin = useIsAdmin();
@@ -97,7 +97,7 @@ export function Dashboard () {
-
+
diff --git a/ui/src/app/metadata/Attribute.js b/ui/src/app/metadata/Attribute.js
index 92e3b3113..2a9847d19 100644
--- a/ui/src/app/metadata/Attribute.js
+++ b/ui/src/app/metadata/Attribute.js
@@ -10,7 +10,7 @@ import { MetadataAttributeBundleEdit } from './view/MetadataAttributeBundleEdit'
export function Attribute() {
- let { path } = useRouteMatch();
+ let { path, url } = useRouteMatch();
return (
@@ -37,7 +37,7 @@ export function Attribute() {
} />
-
+
} />
);
diff --git a/ui/src/app/metadata/Filter.js b/ui/src/app/metadata/Filter.js
index f79c49199..4c1bc707c 100644
--- a/ui/src/app/metadata/Filter.js
+++ b/ui/src/app/metadata/Filter.js
@@ -9,7 +9,7 @@ import { EditFilter } from './view/EditFilter';
export function Filter() {
- const { path } = useRouteMatch();
+ const { path, url } = useRouteMatch();
return (
@@ -31,7 +31,7 @@ export function Filter() {
} />
-
+
} />
);
diff --git a/ui/src/app/metadata/Metadata.js b/ui/src/app/metadata/Metadata.js
index e43c6b3df..89b8a4bc5 100644
--- a/ui/src/app/metadata/Metadata.js
+++ b/ui/src/app/metadata/Metadata.js
@@ -15,7 +15,7 @@ import { MetadataConfirmRestore } from './view/MetadataConfirmRestore';
export function Metadata () {
- let { path } = useRouteMatch();
+ const { url, path } = useRouteMatch();
return (
@@ -57,9 +57,9 @@ export function Metadata () {
} />
-
-
- } />
+ {
+
+ } />}
diff --git a/ui/src/app/metadata/domain/source/component/SourceList.js b/ui/src/app/metadata/domain/source/component/SourceList.js
index 5eeab4b48..109396c2c 100644
--- a/ui/src/app/metadata/domain/source/component/SourceList.js
+++ b/ui/src/app/metadata/domain/source/component/SourceList.js
@@ -80,7 +80,7 @@ export default function SourceList({ entities, onDelete, onEnable, onChangeGroup
{isAdmin && onChangeGroup &&
-
+
|
}
{onDelete && isAdmin &&
diff --git a/ui/src/app/metadata/editor/MetadataEditor.js b/ui/src/app/metadata/editor/MetadataEditor.js
index e6d9b7729..2561dee47 100644
--- a/ui/src/app/metadata/editor/MetadataEditor.js
+++ b/ui/src/app/metadata/editor/MetadataEditor.js
@@ -28,8 +28,6 @@ export function MetadataEditor ({ restore, current, reload }) {
const { type, id, section } = useParams();
- console.log(type, id);
-
const { update, loading } = useMetadataUpdater(`${ API_BASE_PATH }${getMetadataPath(type)}`, current, reload);
const notificationDispatch = useNotificationDispatcher();
@@ -72,6 +70,8 @@ export function MetadataEditor ({ restore, current, reload }) {
const gotoDetail = (state = null) => {
setBlocking(false);
+
+ console.log(`/metadata/${type}/${id}`);
history.push(`/metadata/${type}/${id}`, state);
};
diff --git a/ui/src/app/metadata/new/NewSource.js b/ui/src/app/metadata/new/NewSource.js
index c0f0283d0..90a8e61e5 100644
--- a/ui/src/app/metadata/new/NewSource.js
+++ b/ui/src/app/metadata/new/NewSource.js
@@ -10,7 +10,7 @@ import { faCopy, faLink, faPlusSquare } from '@fortawesome/free-solid-svg-icons'
export function NewSource() {
- const { path } = useRouteMatch();
+ const { path, url } = useRouteMatch();
const [showNav, setShowNav] = React.useState(true);
@@ -87,7 +87,7 @@ export function NewSource() {
{ setShowNav(s) } } />
} />
-
+
} />
diff --git a/ui/src/index.js b/ui/src/index.js
index e0143847c..c390950c9 100644
--- a/ui/src/index.js
+++ b/ui/src/index.js
@@ -1,17 +1,15 @@
import React from 'react';
-import ReactDOM from 'react-dom';
import './index.scss';
import App from './app/App';
-import reportWebVitals from './reportWebVitals';
+import { createRoot } from 'react-dom/client';
+
+const container = document.getElementById('root');
+const root = createRoot(container);
+
+root.render();
-ReactDOM.render(
-
-
- ,
- document.getElementById('root')
-);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
-reportWebVitals();
+// reportWebVitals();