next-recomponents 1.1.4 → 1.1.6
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 +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
- package/src/container/index.tsx +1 -1
- package/src/use-resources/get.token.tsx +1 -3
package/dist/index.js
CHANGED
|
@@ -10964,7 +10964,7 @@ function Container({
|
|
|
10964
10964
|
{
|
|
10965
10965
|
className: "bg-blue-100 overflow-hidden",
|
|
10966
10966
|
initial: isFooterOpen,
|
|
10967
|
-
animate: { height: isFooterOpen ?
|
|
10967
|
+
animate: { height: isFooterOpen ? 200 : 40 },
|
|
10968
10968
|
transition: { duration: 0.3 },
|
|
10969
10969
|
children: [
|
|
10970
10970
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex justify-center items-center p-2", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -32094,8 +32094,7 @@ function useToken() {
|
|
|
32094
32094
|
const token = (0, import_react27.useMemo)(() => {
|
|
32095
32095
|
if (typeof window != "undefined") {
|
|
32096
32096
|
const t = window.localStorage.getItem("token");
|
|
32097
|
-
if (
|
|
32098
|
-
return t;
|
|
32097
|
+
if (t) return t;
|
|
32099
32098
|
}
|
|
32100
32099
|
return "";
|
|
32101
32100
|
}, [typeof window]);
|
package/dist/index.mjs
CHANGED
|
@@ -10948,7 +10948,7 @@ function Container({
|
|
|
10948
10948
|
{
|
|
10949
10949
|
className: "bg-blue-100 overflow-hidden",
|
|
10950
10950
|
initial: isFooterOpen,
|
|
10951
|
-
animate: { height: isFooterOpen ?
|
|
10951
|
+
animate: { height: isFooterOpen ? 200 : 40 },
|
|
10952
10952
|
transition: { duration: 0.3 },
|
|
10953
10953
|
children: [
|
|
10954
10954
|
/* @__PURE__ */ jsx5("div", { className: "flex justify-center items-center p-2", children: /* @__PURE__ */ jsx5(
|
|
@@ -32085,8 +32085,7 @@ function useToken() {
|
|
|
32085
32085
|
const token = useMemo8(() => {
|
|
32086
32086
|
if (typeof window != "undefined") {
|
|
32087
32087
|
const t = window.localStorage.getItem("token");
|
|
32088
|
-
if (
|
|
32089
|
-
return t;
|
|
32088
|
+
if (t) return t;
|
|
32090
32089
|
}
|
|
32091
32090
|
return "";
|
|
32092
32091
|
}, [typeof window]);
|
package/package.json
CHANGED
package/src/container/index.tsx
CHANGED
|
@@ -149,7 +149,7 @@ export default function Container({
|
|
|
149
149
|
<motion.footer
|
|
150
150
|
className="bg-blue-100 overflow-hidden"
|
|
151
151
|
initial={isFooterOpen}
|
|
152
|
-
animate={{ height: isFooterOpen ?
|
|
152
|
+
animate={{ height: isFooterOpen ? 200 : 40 }}
|
|
153
153
|
transition={{ duration: 0.3 }}
|
|
154
154
|
>
|
|
155
155
|
<div className="flex justify-center items-center p-2">
|
|
@@ -4,9 +4,7 @@ export default function useToken(): string {
|
|
|
4
4
|
const token = useMemo(() => {
|
|
5
5
|
if (typeof window != "undefined") {
|
|
6
6
|
const t = window.localStorage.getItem("token");
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
return t;
|
|
7
|
+
if (t) return t;
|
|
10
8
|
}
|
|
11
9
|
return "";
|
|
12
10
|
}, [typeof window]);
|