pl-fe: use more specific zustand selectors
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user