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

@ -8,7 +8,7 @@ import { useSettings } from 'pl-fe/hooks/use-settings';
import { useTheme } from 'pl-fe/hooks/use-theme';
import { useThemeCss } from 'pl-fe/hooks/use-theme-css';
import { startSentry } from 'pl-fe/sentry';
import { useModalsStore } from 'pl-fe/stores/modals';
import { useHasModals } from 'pl-fe/stores/modals';
const Helmet = React.lazy(() => import('pl-fe/components/helmet'));
@ -20,7 +20,7 @@ const PlFeHead = () => {
const plFeConfig = usePlFeConfig();
const theme = useTheme();
const withModals = useModalsStore().modals.length > 0;
const withModals = useHasModals();
const themeCss = useThemeCss();
const dsn = plFeConfig.sentryDsn;