수정
This commit is contained in:
@@ -18,7 +18,7 @@ import {
|
|||||||
import { useHomeGroupsMutation } from '@/entities/home/api/use-home-groups-mutation';
|
import { useHomeGroupsMutation } from '@/entities/home/api/use-home-groups-mutation';
|
||||||
import { useUserInfo } from '@/entities/user/lib/use-user-info';
|
import { useUserInfo } from '@/entities/user/lib/use-user-info';
|
||||||
import { useAppBridge } from '@/hooks';
|
import { useAppBridge } from '@/hooks';
|
||||||
import { useMenuOnStore, useStore } from '@/shared/model/store';
|
import { useFavoriteEditOnStore, useMenuOnStore, useStore } from '@/shared/model/store';
|
||||||
import { HomeGroupsParams, HomeGroupsResponse } from '@/entities/home/model/types';
|
import { HomeGroupsParams, HomeGroupsResponse } from '@/entities/home/model/types';
|
||||||
import {
|
import {
|
||||||
BusinessPropertyParams,
|
BusinessPropertyParams,
|
||||||
@@ -69,6 +69,8 @@ export const SubLayout = () => {
|
|||||||
|
|
||||||
const { reload, navigateBack } = useNavigate();
|
const { reload, navigateBack } = useNavigate();
|
||||||
const { menuOn, setMenuOn } = useMenuOnStore();
|
const { menuOn, setMenuOn } = useMenuOnStore();
|
||||||
|
const { favoriteEditOn, setFavoriteEditOn } = useFavoriteEditOnStore();
|
||||||
|
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
console.log(location)
|
console.log(location)
|
||||||
|
|
||||||
@@ -403,6 +405,7 @@ export const SubLayout = () => {
|
|||||||
let pathname = location.pathname;
|
let pathname = location.pathname;
|
||||||
if(menuOn){
|
if(menuOn){
|
||||||
setMenuOn(false);
|
setMenuOn(false);
|
||||||
|
setFavoriteEditOn(false);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
navigateBack();
|
navigateBack();
|
||||||
|
|||||||
Reference in New Issue
Block a user