Merge branch 'main' of https://gitea.bpsoft.co.kr/nicepayments/nice-app-web
# Conflicts: # .env.development
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
VITE_APP_ENV=development
|
VITE_APP_ENV=development
|
||||||
# VITE_APP_AUTH_PROXY_HOST='http://3.35.79.250:8090'
|
# VITE_APP_AUTH_PROXY_HOST='http://3.35.79.250:8090'
|
||||||
# VITE_APP_API_PROXY_HOST='http://3.35.79.250:8080'
|
# VITE_APP_API_PROXY_HOST='http://3.35.79.250:8080'
|
||||||
VITE_APP_AUTH_PROXY_HOST='https://auth.nicepay.co.kr'
|
VITE_APP_AUTH_PROXY_HOST='https://auth.nicepay.co.kr'
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ export const FundAccountResultListWrap = () => {
|
|||||||
sortType={sortType}
|
sortType={sortType}
|
||||||
onClickToSort={onClickToSort}
|
onClickToSort={onClickToSort}
|
||||||
></SortTypeBox>
|
></SortTypeBox>
|
||||||
<div className="excrow mr-0">
|
<div className="excrow">
|
||||||
<div className="full-menu-keywords no-padding">
|
<div className="full-menu-keywords no-padding">
|
||||||
{
|
{
|
||||||
getFundAccountResultStatusBtnGroup(t).map((value: any, index: number) => (
|
getFundAccountResultStatusBtnGroup(t).map((value: any, index: number) => (
|
||||||
|
|||||||
@@ -321,7 +321,7 @@ export const FundAccountTransferListWrap = () => {
|
|||||||
sortType={sortType}
|
sortType={sortType}
|
||||||
onClickToSort={onClickToSort}
|
onClickToSort={onClickToSort}
|
||||||
></SortTypeBox>
|
></SortTypeBox>
|
||||||
<div className="excrow mr-0">
|
<div className="excrow">
|
||||||
<div className="full-menu-keywords no-padding">
|
<div className="full-menu-keywords no-padding">
|
||||||
{
|
{
|
||||||
getFundAccountStatusBtnGroup(t).map((value: any, index: number) => (
|
getFundAccountStatusBtnGroup(t).map((value: any, index: number) => (
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ export const useUserInfo = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const updateUserData = (data: LoginResponse) => {
|
const updateUserData = (data: LoginResponse) => {
|
||||||
console.log('updateUserData ==> ['+JSON.stringify(data)+']');
|
|
||||||
setLocalStorage(StorageKeys.TokenType, data.tokenType);
|
setLocalStorage(StorageKeys.TokenType, data.tokenType);
|
||||||
setLocalStorage(StorageKeys.AccessToken, data.accessToken);
|
setLocalStorage(StorageKeys.AccessToken, data.accessToken);
|
||||||
setLocalStorage(StorageKeys.RefreshToken, data.refreshToken);
|
setLocalStorage(StorageKeys.RefreshToken, data.refreshToken);
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ export const ArsListPage = () => {
|
|||||||
sortType={sortType}
|
sortType={sortType}
|
||||||
onClickToSort={onClickToSort}
|
onClickToSort={onClickToSort}
|
||||||
></SortTypeBox>
|
></SortTypeBox>
|
||||||
<div className="excrow mr-0">
|
<div className="excrow">
|
||||||
<div className="full-menu-keywords no-padding">
|
<div className="full-menu-keywords no-padding">
|
||||||
{
|
{
|
||||||
getArsPaymentStatusBtnGroup(t).map((value: any, index: number) => (
|
getArsPaymentStatusBtnGroup(t).map((value: any, index: number) => (
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ export const PayoutListPage = () => {
|
|||||||
sortType={sortType}
|
sortType={sortType}
|
||||||
onClickToSort={onClickToSort}
|
onClickToSort={onClickToSort}
|
||||||
></SortTypeBox>
|
></SortTypeBox>
|
||||||
<div className="excrow mr-0">
|
<div className="excrow">
|
||||||
<div className="full-menu-keywords no-padding">
|
<div className="full-menu-keywords no-padding">
|
||||||
{
|
{
|
||||||
getPayoutDisbursementStatusBtnGroup(t).map((value: any, index: number) => (
|
getPayoutDisbursementStatusBtnGroup(t).map((value: any, index: number) => (
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { useEffect, useState } from 'react';
|
|||||||
import { FavoriteWrapper } from '@/entities/home/ui/favorite-wrapper';
|
import { FavoriteWrapper } from '@/entities/home/ui/favorite-wrapper';
|
||||||
import { DayStatusBox } from '@/entities/home/ui/day-status-box';
|
import { DayStatusBox } from '@/entities/home/ui/day-status-box';
|
||||||
import { HomeBottomBanner } from '@/entities/home/ui/home-bottom-banner';
|
import { HomeBottomBanner } from '@/entities/home/ui/home-bottom-banner';
|
||||||
import { AuthRegister } from '@/entities/home/ui/auth-reguster';
|
import { AuthRegister } from '@/entities/home/ui/auth-register';
|
||||||
import { FooterItemActiveKey } from '@/entities/common/model/types';
|
import { FooterItemActiveKey } from '@/entities/common/model/types';
|
||||||
import { StorageKeys } from '@/shared/constants/local-storage';
|
import { StorageKeys } from '@/shared/constants/local-storage';
|
||||||
import { getLocalStorage } from '@/shared/lib/web-view-bridge';
|
import { getLocalStorage } from '@/shared/lib/web-view-bridge';
|
||||||
@@ -46,7 +46,7 @@ export const HomePage = () => {
|
|||||||
|
|
||||||
const [bottomBannerOn, setBottomBannerOn] = useState<boolean>(false);
|
const [bottomBannerOn, setBottomBannerOn] = useState<boolean>(false);
|
||||||
const [authRegisterOn, setAuthRegisterOn] = useState<boolean>(false);
|
const [authRegisterOn, setAuthRegisterOn] = useState<boolean>(false);
|
||||||
const [, setFavoriteItems] = useState<Array<UserFavorite>>([]);
|
const [favoriteItems, setFavoriteItems] = useState<Array<UserFavorite>>([]);
|
||||||
const [bannerList, setBannerList] = useState<Array<BannerList>>([]);
|
const [bannerList, setBannerList] = useState<Array<BannerList>>([]);
|
||||||
|
|
||||||
const callHomeBannerList = () => {
|
const callHomeBannerList = () => {
|
||||||
@@ -95,10 +95,8 @@ export const HomePage = () => {
|
|||||||
}
|
}
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
console.log('catch', e);
|
console.log('catch', e);
|
||||||
|
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
console.log('finally');
|
setAuthRegisterOn(true);
|
||||||
setAuthRegisterOn(true);
|
|
||||||
}).catch((e: any) => {
|
}).catch((e: any) => {
|
||||||
if(e.response?.data?.error?.message){
|
if(e.response?.data?.error?.message){
|
||||||
snackBar(e.response?.data?.error?.message);
|
snackBar(e.response?.data?.error?.message);
|
||||||
|
|||||||
@@ -4,7 +4,8 @@ import { StorageKeys } from '@/shared/constants/local-storage';
|
|||||||
import {
|
import {
|
||||||
checkIsAxiosError,
|
checkIsAxiosError,
|
||||||
getLocalStorage,
|
getLocalStorage,
|
||||||
setLocalStorage
|
setLocalStorage,
|
||||||
|
snackBar
|
||||||
} from '@/shared/lib';
|
} from '@/shared/lib';
|
||||||
import { appBridge } from '@/utils/appBridge';
|
import { appBridge } from '@/utils/appBridge';
|
||||||
import { LoginResponse } from '@/entities/user/model/types';
|
import { LoginResponse } from '@/entities/user/model/types';
|
||||||
@@ -58,6 +59,9 @@ const onResponseFulfilled = (response: AxiosResponse) => {
|
|||||||
|
|
||||||
const onResponseRejected = (error: AxiosError) => {
|
const onResponseRejected = (error: AxiosError) => {
|
||||||
console.log('onResponseRejected --> ', error);
|
console.log('onResponseRejected --> ', error);
|
||||||
|
if(!!error.code && error.code === 'ETIMEDOUT'){
|
||||||
|
snackBar(error?.message);
|
||||||
|
}
|
||||||
if(error?.status === 401){
|
if(error?.status === 401){
|
||||||
if(appBridge.isNativeEnvironment()){
|
if(appBridge.isNativeEnvironment()){
|
||||||
return appBridge.safeCall(() => appBridge.requestRefreshToken()).then((token: LoginResponse) => {
|
return appBridge.safeCall(() => appBridge.requestRefreshToken()).then((token: LoginResponse) => {
|
||||||
|
|||||||
@@ -519,4 +519,7 @@ main.pop{
|
|||||||
|
|
||||||
.email-label.active .label-text {
|
.email-label.active .label-text {
|
||||||
color: blue;
|
color: blue;
|
||||||
|
}
|
||||||
|
.excrow .full-menu-keywords {
|
||||||
|
width: calc(100% - 20px);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user