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

@ -13,7 +13,7 @@ import LoginForm from 'pl-fe/features/auth-login/components/login-form';
import OtpAuthForm from 'pl-fe/features/auth-login/components/otp-auth-form';
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
import { useModalsStore } from 'pl-fe/stores/modals';
import { useModalsActions } from 'pl-fe/stores/modals';
import { getRedirectUrl } from 'pl-fe/utils/redirect';
import { isStandalone } from 'pl-fe/utils/state';
@ -21,7 +21,7 @@ import type { PlfeResponse } from 'pl-fe/api';
const LoginPage = () => {
const dispatch = useAppDispatch();
const { closeModal } = useModalsStore();
const { closeModal } = useModalsActions();
const me = useAppSelector((state) => state.me);
const standalone = useAppSelector((state) => isStandalone(state));