pl-fe: use more specific zustand selectors

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-10-22 21:42:11 +02:00
parent 80654146a2
commit ea86246647
93 changed files with 398 additions and 349 deletions

View File

@ -17,7 +17,7 @@ import Stack from 'pl-fe/components/ui/stack';
import Text from 'pl-fe/components/ui/text';
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
import { useOwnAccount } from 'pl-fe/hooks/use-own-account';
import { useModalsStore } from 'pl-fe/stores/modals';
import { useModalsActions } from 'pl-fe/stores/modals';
import toast from 'pl-fe/toast';
const toRad = (x: number) => x * (Math.PI / 180);
@ -51,7 +51,7 @@ const CirclePage: React.FC = () => {
const dispatch = useAppDispatch();
const canvasRef = useRef<HTMLCanvasElement>(null);
const { openModal } = useModalsStore();
const { openModal } = useModalsActions();
const { account } = useOwnAccount();
useEffect(() => {