@orion-studios/payload-studio 0.6.0-beta.32 → 0.6.0-beta.33
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/admin/client.js
CHANGED
|
@@ -3059,7 +3059,13 @@ function AdminShellClient({
|
|
|
3059
3059
|
onLogout,
|
|
3060
3060
|
storageKey = "orion-admin-shell-collapsed"
|
|
3061
3061
|
}) {
|
|
3062
|
-
const [collapsed, setCollapsed] = (0, import_react14.useState)(
|
|
3062
|
+
const [collapsed, setCollapsed] = (0, import_react14.useState)(() => {
|
|
3063
|
+
try {
|
|
3064
|
+
return typeof window !== "undefined" && window.localStorage.getItem(storageKey) === "1";
|
|
3065
|
+
} catch {
|
|
3066
|
+
return false;
|
|
3067
|
+
}
|
|
3068
|
+
});
|
|
3063
3069
|
const [loggingOut, setLoggingOut] = (0, import_react14.useState)(false);
|
|
3064
3070
|
(0, import_react14.useEffect)(() => {
|
|
3065
3071
|
try {
|
package/dist/admin/client.mjs
CHANGED
package/dist/admin-app/client.js
CHANGED
|
@@ -122,7 +122,13 @@ function AdminShellClient({
|
|
|
122
122
|
onLogout,
|
|
123
123
|
storageKey = "orion-admin-shell-collapsed"
|
|
124
124
|
}) {
|
|
125
|
-
const [collapsed, setCollapsed] = (0, import_react.useState)(
|
|
125
|
+
const [collapsed, setCollapsed] = (0, import_react.useState)(() => {
|
|
126
|
+
try {
|
|
127
|
+
return typeof window !== "undefined" && window.localStorage.getItem(storageKey) === "1";
|
|
128
|
+
} catch {
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
126
132
|
const [loggingOut, setLoggingOut] = (0, import_react.useState)(false);
|
|
127
133
|
(0, import_react.useEffect)(() => {
|
|
128
134
|
try {
|
|
@@ -103,7 +103,13 @@ function AdminShellClient({
|
|
|
103
103
|
onLogout,
|
|
104
104
|
storageKey = "orion-admin-shell-collapsed"
|
|
105
105
|
}) {
|
|
106
|
-
const [collapsed, setCollapsed] = useState(
|
|
106
|
+
const [collapsed, setCollapsed] = useState(() => {
|
|
107
|
+
try {
|
|
108
|
+
return typeof window !== "undefined" && window.localStorage.getItem(storageKey) === "1";
|
|
109
|
+
} catch {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
107
113
|
const [loggingOut, setLoggingOut] = useState(false);
|
|
108
114
|
useEffect(() => {
|
|
109
115
|
try {
|
package/package.json
CHANGED