@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 = ({
|
|
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={
|
|
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={
|
|
136
|
+
providers={providers}
|
|
130
137
|
setSystemAuth={setIsAuthenticated}
|
|
131
138
|
setUserProfile={setUserProfile}
|
|
132
139
|
/>
|
package/package.json
CHANGED