test
This commit is contained in:
@@ -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 = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user