This commit is contained in:
focp212@naver.com
2025-10-13 16:03:56 +09:00
parent eef751dfa2
commit 29eca29222
8 changed files with 85 additions and 78 deletions

View File

@@ -6,6 +6,7 @@ import {
FooterItemActiveKey
} from '@/entities/common/model/types';
import { useEffect, useState } from 'react';
import { useAppBridge } from '@/hooks';
export const FooterNavigation = ({
setMenuOn,
@@ -14,16 +15,34 @@ export const FooterNavigation = ({
}: FooterProps) => {
const { navigate } = useNavigate();
const [isFooterOn, setIsFooterOn] = useState<boolean>(false);
const {
isNativeEnvironment,
openBiometricRegistrationPopup,
requestRefreshToken,
logout
} = useAppBridge();
const onClickToNavigate = (path?: string) => {
if(!!path){
navigate(path);
if(path === PATHS.settlement.list){
callRefresh();
}
else{
navigate(path);
}
}
};
const onClickToOpenMenu = () => {
setFavoriteEdit(false);
setMenuOn(true);
};
const callRefresh = () => {
requestRefreshToken().then((token) => {
console.log('requestRefreshToken +[' + JSON.stringify(token) + ']' );
});
}
const buttonItems = [
{