@star-insure/sdk 3.1.2 → 3.1.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/lib/page.d.ts +1 -1
- package/dist/sdk.cjs.development.js +2 -1
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +2 -1
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/filter/Back.tsx +1 -0
- package/src/lib/page.tsx +1 -1
package/dist/lib/page.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { AuthContext, Breadcrumb, Environment } from '../types';
|
|
|
5
5
|
*/
|
|
6
6
|
declare type CustomPageProps = {
|
|
7
7
|
env: Environment;
|
|
8
|
-
breadcrumbs
|
|
8
|
+
breadcrumbs?: Breadcrumb[];
|
|
9
9
|
links: Record<string, string>;
|
|
10
10
|
access_token?: string;
|
|
11
11
|
impersonate_id?: number;
|
|
@@ -2253,7 +2253,8 @@ function BackButton(_ref) {
|
|
|
2253
2253
|
|
|
2254
2254
|
React__default.useEffect(function () {
|
|
2255
2255
|
if (typeof window !== 'undefined') {
|
|
2256
|
-
// Set back button URL
|
|
2256
|
+
if (!breadcrumbs) return; // Set back button URL
|
|
2257
|
+
|
|
2257
2258
|
if (back && typeof back === 'boolean') {
|
|
2258
2259
|
// If we haven't provided a path as a prop, use the last breadcrumb that's not the current one
|
|
2259
2260
|
var crumb = breadcrumbs.slice(breadcrumbs.length - 2, breadcrumbs.length - 1);
|