diff --git a/apps/renderer/src/components/ux/transition/icon.tsx b/apps/renderer/src/components/ux/transition/icon.tsx
index f9045c8ec..982c571ef 100644
--- a/apps/renderer/src/components/ux/transition/icon.tsx
+++ b/apps/renderer/src/components/ux/transition/icon.tsx
@@ -44,13 +44,11 @@ const createIconTransition =
exit={exit}
/>
) : (
- cloneElement(icon1, {
- className: cn(icon1ClassName, className),
- key: "1",
- initial,
- animate,
- exit,
- })
+
+ {cloneElement(icon1, {
+ className: cn(icon1ClassName, className),
+ })}
+
)
) : typeof icon2 === "string" ? (
) : (
- cloneElement(icon2, {
- className: cn(icon2ClassName, className),
- key: "2",
- initial,
- animate,
- exit,
- })
+
+ {cloneElement(icon2, {
+ className: cn(icon2ClassName, className),
+ })}
+
)}
)
diff --git a/apps/renderer/src/store/utils/helper.ts b/apps/renderer/src/store/utils/helper.ts
index 271564f3d..e1762bc88 100644
--- a/apps/renderer/src/store/utils/helper.ts
+++ b/apps/renderer/src/store/utils/helper.ts
@@ -60,7 +60,16 @@ export const createZustandStore =
{
get(_, prop) {
if (prop in storeMap) {
- return storeMap[prop as string].getState()
+ return new Proxy(() => {}, {
+ get() {
+ return storeMap[prop as string].getState()
+ },
+ apply(target, thisArg, argumentsList) {
+ return storeMap[prop as string].setState(
+ produce(storeMap[prop as string].getState(), ...argumentsList),
+ )
+ },
+ })
}
return
},