@hexdspace/react 0.0.22 → 0.0.23
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 +3 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -925,7 +925,7 @@ function RequireAuth({
|
|
|
925
925
|
return /* @__PURE__ */ jsx6(Fragment, { children: loadingPlaceholder ?? null });
|
|
926
926
|
}
|
|
927
927
|
if (auth.status === "error") {
|
|
928
|
-
return /* @__PURE__ */ jsx6(Fragment, { children: errorPlaceholder ??
|
|
928
|
+
return /* @__PURE__ */ jsx6(Fragment, { children: errorPlaceholder ?? null });
|
|
929
929
|
}
|
|
930
930
|
if (auth.status === "unauthenticated") {
|
|
931
931
|
if (unauthenticatedRedirectTo) {
|
|
@@ -947,16 +947,13 @@ function RedirectIfAuthed({
|
|
|
947
947
|
return /* @__PURE__ */ jsx6(Fragment, { children: loadingPlaceholder ?? null });
|
|
948
948
|
}
|
|
949
949
|
if (auth.status === "error") {
|
|
950
|
-
return /* @__PURE__ */ jsx6(Fragment, { children: errorPlaceholder ??
|
|
950
|
+
return /* @__PURE__ */ jsx6(Fragment, { children: errorPlaceholder ?? loadingPlaceholder ?? null });
|
|
951
951
|
}
|
|
952
952
|
if (auth.status === "authenticated") {
|
|
953
953
|
if (redirectTo) {
|
|
954
954
|
return /* @__PURE__ */ jsx6(Navigate, { to: redirectTo, replace: true });
|
|
955
955
|
}
|
|
956
|
-
|
|
957
|
-
return /* @__PURE__ */ jsx6(Fragment, { children: authenticatedPlaceholder });
|
|
958
|
-
}
|
|
959
|
-
return /* @__PURE__ */ jsx6(Outlet, {});
|
|
956
|
+
return /* @__PURE__ */ jsx6(Fragment, { children: authenticatedPlaceholder ?? null });
|
|
960
957
|
}
|
|
961
958
|
return nonAuthedPlaceholder ? /* @__PURE__ */ jsx6(Fragment, { children: nonAuthedPlaceholder }) : /* @__PURE__ */ jsx6(Outlet, {});
|
|
962
959
|
}
|