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