@lincros-ui/components 0.2.2 → 0.2.3
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.
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5203,7 +5203,10 @@ function MainLayout({
|
|
|
5203
5203
|
user,
|
|
5204
5204
|
onLogout,
|
|
5205
5205
|
getCurrentTenantId,
|
|
5206
|
-
currentTime
|
|
5206
|
+
currentTime,
|
|
5207
|
+
appName,
|
|
5208
|
+
appSubtitle,
|
|
5209
|
+
logoUrl
|
|
5207
5210
|
}) {
|
|
5208
5211
|
return /* @__PURE__ */ jsx(SidebarProvider, { children: /* @__PURE__ */ jsxs("div", { className: "h-screen w-full flex", children: [
|
|
5209
5212
|
/* @__PURE__ */ jsx(
|
|
@@ -5213,13 +5216,16 @@ function MainLayout({
|
|
|
5213
5216
|
user,
|
|
5214
5217
|
onLogout,
|
|
5215
5218
|
getCurrentTenantId,
|
|
5216
|
-
currentTime
|
|
5219
|
+
currentTime,
|
|
5220
|
+
appName,
|
|
5221
|
+
appSubtitle,
|
|
5222
|
+
logoUrl
|
|
5217
5223
|
}
|
|
5218
5224
|
),
|
|
5219
5225
|
/* @__PURE__ */ jsx("main", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "h-full overflow-y-auto", children }) })
|
|
5220
5226
|
] }) });
|
|
5221
5227
|
}
|
|
5222
|
-
function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths, useTenant, tenantService }) {
|
|
5228
|
+
function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths, useTenant, tenantService, appName, appSubtitle, logoUrl }) {
|
|
5223
5229
|
const { isAuthenticated, isLoading, logout, user, getCurrentTenantId } = useAuthContext();
|
|
5224
5230
|
const location = useLocation();
|
|
5225
5231
|
const sso = useSSO(tenantId || void 0);
|
|
@@ -5259,6 +5265,9 @@ function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths
|
|
|
5259
5265
|
user,
|
|
5260
5266
|
onLogout: logout,
|
|
5261
5267
|
getCurrentTenantId,
|
|
5268
|
+
appName,
|
|
5269
|
+
appSubtitle,
|
|
5270
|
+
logoUrl,
|
|
5262
5271
|
children: /* @__PURE__ */ jsx(EnsureTenant, { useTenant, tenantService, children })
|
|
5263
5272
|
}
|
|
5264
5273
|
);
|