@visns-studio/visns-components 3.3.0 → 3.3.1

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.
@@ -18,8 +18,6 @@ import Login from '../auth/Login';
18
18
  import Reset from '../auth/Reset';
19
19
  import Verify from '../auth/Verify';
20
20
 
21
- // import Main from '../../../../../../resources/js/main';
22
-
23
21
  const ProtectedRoute = ({ user, loading, redirectPath = '/login' }) => {
24
22
  return loading ? null : !user.id ? (
25
23
  <Navigate to={redirectPath} replace />
@@ -1,6 +1,9 @@
1
1
  import React, { useState } from 'react';
2
- import { Routes, Route } from 'react-router-dom';
3
- import { Call, Loader, Navigation } from '@visns-studio/visns-components';
2
+ import { Routes, Route, Navigate } from 'react-router-dom';
3
+
4
+ import Call from '../Call';
5
+ import Loader from '../Loader';
6
+ import Navigation from '../Navigation';
4
7
 
5
8
  const GenericMain = ({
6
9
  logo,
@@ -52,7 +55,14 @@ const GenericMain = ({
52
55
  <main className="content">
53
56
  <div className="content-main" id="app">
54
57
  <div className="padding">
55
- <Routes>{renderRoutes(routeConfig)}</Routes>
58
+ <Routes>
59
+ {renderRoutes(routeConfig)}
60
+ {/* Add a wildcard route for handling unknown paths */}
61
+ <Route
62
+ path="*"
63
+ element={<Navigate to="/" replace />}
64
+ />
65
+ </Routes>
56
66
  </div>
57
67
  <Call incomingCallData={incomingCallData} />
58
68
  <Loader />
package/package.json CHANGED
@@ -49,7 +49,7 @@
49
49
  "react-dom": "^17.0.1"
50
50
  },
51
51
  "name": "@visns-studio/visns-components",
52
- "version": "3.3.0",
52
+ "version": "3.3.1",
53
53
  "description": "Various packages to assist in the development of our Custom Applications.",
54
54
  "main": "index.js",
55
55
  "scripts": {