@lambda-development/erp-core 0.8.11 → 0.8.12
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/components/auth/protected-route.d.ts +6 -0
- package/dist/index.js +911 -907
- package/dist/index.js.map +1 -1
- package/dist/lib/nav.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export declare function ProtectedRoute({ children }: {
|
|
2
2
|
children: React.ReactNode;
|
|
3
3
|
}): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
/** Like ProtectedRoute, but also requires an admin — non-admins are sent home.
|
|
5
|
+
* Used for admin-only pages (e.g. Opening Balances) so the URL can't be reached
|
|
6
|
+
* directly, not just hidden from the menu. */
|
|
7
|
+
export declare function AdminRoute({ children }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|