@visns-studio/visns-components 3.2.8 → 3.3.0

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.
@@ -28,7 +28,13 @@ const ProtectedRoute = ({ user, loading, redirectPath = '/login' }) => {
28
28
  );
29
29
  };
30
30
 
31
- const GenericAuth = ({ logo, navigation, routeConfig }) => {
31
+ const GenericAuth = ({
32
+ logo,
33
+ headerLogo,
34
+ providers,
35
+ navigation,
36
+ routeConfig,
37
+ }) => {
32
38
  const navigate = useNavigate();
33
39
  const location = useLocation();
34
40
  const [userProfile, setUserProfile] = useState({});
@@ -66,6 +72,7 @@ const GenericAuth = ({ logo, navigation, routeConfig }) => {
66
72
  element={
67
73
  <LoginComponent
68
74
  logo={logo}
75
+ providers={providers}
69
76
  setIsAuthenticated={setIsAuthenticated}
70
77
  setUserProfile={setUserProfile}
71
78
  />
@@ -101,7 +108,7 @@ const GenericAuth = ({ logo, navigation, routeConfig }) => {
101
108
  path="/*"
102
109
  element={
103
110
  <GenericMain
104
- logo={logo}
111
+ logo={headerLogo}
105
112
  navigation={navigation}
106
113
  routeConfig={routeConfig}
107
114
  setUserProfile={setUserProfile}
@@ -123,10 +130,10 @@ const GenericAuth = ({ logo, navigation, routeConfig }) => {
123
130
  };
124
131
 
125
132
  const LoginComponent = React.memo(
126
- ({ logo, setIsAuthenticated, setUserProfile }) => (
133
+ ({ logo, providers, setIsAuthenticated, setUserProfile }) => (
127
134
  <Login
128
135
  logo={logo}
129
- providers={['azure']}
136
+ providers={providers}
130
137
  setSystemAuth={setIsAuthenticated}
131
138
  setUserProfile={setUserProfile}
132
139
  />
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.2.8",
52
+ "version": "3.3.0",
53
53
  "description": "Various packages to assist in the development of our Custom Applications.",
54
54
  "main": "index.js",
55
55
  "scripts": {