diff --git a/interface/src/components/routing/useRouterTab.ts b/interface/src/components/routing/useRouterTab.ts
index 4858f8ceb..0d785f242 100644
--- a/interface/src/components/routing/useRouterTab.ts
+++ b/interface/src/components/routing/useRouterTab.ts
@@ -1,12 +1,12 @@
-import { useMatch, useResolvedPath } from 'react-router-dom';
+import { useLocation } from 'react-router-dom';
export const useRouterTab = () => {
- // const loc = useLocation().pathname;
- // const routerTab = loc.substring(0, loc.lastIndexOf('/')) ? loc : false;
+ const loc = useLocation().pathname;
+ const routerTab = loc.substring(0, loc.lastIndexOf('/')) ? loc : false;
- const routerTabPath = useResolvedPath(':tab');
- const routerTabPathMatch = useMatch(routerTabPath.pathname);
- const routerTab = routerTabPathMatch?.params?.tab || false;
+ // const routerTabPath = useResolvedPath(':tab');
+ // const routerTabPathMatch = useMatch(routerTabPath.pathname);
+ // const routerTab = routerTabPathMatch?.params?.tab || false;
return { routerTab } as const;
};
diff --git a/interface/src/framework/ap/AccessPoint.tsx b/interface/src/framework/ap/AccessPoint.tsx
index 87fecefb3..5d74cd7f6 100644
--- a/interface/src/framework/ap/AccessPoint.tsx
+++ b/interface/src/framework/ap/AccessPoint.tsx
@@ -22,8 +22,12 @@ const AccessPoint: FC = () => {
return (
<>
-
-
+
+
} />
@@ -36,7 +40,7 @@ const AccessPoint: FC = () => {
}
/>
- } />
+ } />
>
);
diff --git a/interface/src/framework/mqtt/Mqtt.tsx b/interface/src/framework/mqtt/Mqtt.tsx
index 7520b0eec..f65ea4181 100644
--- a/interface/src/framework/mqtt/Mqtt.tsx
+++ b/interface/src/framework/mqtt/Mqtt.tsx
@@ -21,8 +21,8 @@ const Mqtt: FC = () => {
return (
<>
-
-
+
+
} />
@@ -34,7 +34,7 @@ const Mqtt: FC = () => {
}
/>
- } />
+ } />
>
);
diff --git a/interface/src/framework/network/NetworkConnection.tsx b/interface/src/framework/network/NetworkConnection.tsx
index 18d1842ef..cd9113398 100644
--- a/interface/src/framework/network/NetworkConnection.tsx
+++ b/interface/src/framework/network/NetworkConnection.tsx
@@ -44,9 +44,13 @@ const NetworkConnection: FC = () => {
}}
>
-
-
-
+
+
+
} />
@@ -66,7 +70,7 @@ const NetworkConnection: FC = () => {
}
/>
- } />
+ } />
);
diff --git a/interface/src/framework/ntp/NetworkTime.tsx b/interface/src/framework/ntp/NetworkTime.tsx
index d41d1fb8c..21a110001 100644
--- a/interface/src/framework/ntp/NetworkTime.tsx
+++ b/interface/src/framework/ntp/NetworkTime.tsx
@@ -20,8 +20,8 @@ const NetworkTime: FC = () => {
return (
<>
-
-
+
+
} />
@@ -33,7 +33,7 @@ const NetworkTime: FC = () => {
}
/>
- } />
+ } />
>
);
diff --git a/interface/src/framework/security/Security.tsx b/interface/src/framework/security/Security.tsx
index d55a171e1..b6be5ddfd 100644
--- a/interface/src/framework/security/Security.tsx
+++ b/interface/src/framework/security/Security.tsx
@@ -17,13 +17,13 @@ const Security: FC = () => {
return (
<>
-
-
+
+
} />
} />
- } />
+ } />
>
);
diff --git a/interface/src/framework/system/System.tsx b/interface/src/framework/system/System.tsx
index 2caf4b7c6..8dc373cf2 100644
--- a/interface/src/framework/system/System.tsx
+++ b/interface/src/framework/system/System.tsx
@@ -23,10 +23,10 @@ const System: FC = () => {
return (
<>
-
-
-
-
+
+
+
+
} />
@@ -47,7 +47,7 @@ const System: FC = () => {
}
/>
- } />
+ } />
>
);
diff --git a/interface/src/project/Dashboard.tsx b/interface/src/project/Dashboard.tsx
index bfbaa8923..ea1d441f8 100644
--- a/interface/src/project/Dashboard.tsx
+++ b/interface/src/project/Dashboard.tsx
@@ -20,15 +20,15 @@ const Dashboard: FC = () => {
return (
<>
-
-
-
+
+
+
} />
} />
} />
- } />
+ } />
>
);
diff --git a/interface/src/project/Settings.tsx b/interface/src/project/Settings.tsx
index 29edb1c13..5a0de5b82 100644
--- a/interface/src/project/Settings.tsx
+++ b/interface/src/project/Settings.tsx
@@ -18,17 +18,17 @@ const Settings: FC = () => {
return (
<>
-
-
-
-
+
+
+
+
} />
} />
} />
} />
- } />
+ } />
>
);