불필요 파일 제거
This commit is contained in:
@@ -5,7 +5,6 @@ import {
|
||||
DeviceInfo,
|
||||
ShareContent
|
||||
} from '@/types';
|
||||
import { LoginCredentials, UserInfo } from '@/types/auth';
|
||||
|
||||
class AppBridge {
|
||||
private static instance: AppBridge;
|
||||
@@ -114,10 +113,6 @@ class AppBridge {
|
||||
return this.sendMessage(BridgeMessageType.NAVIGATE_TO, { path });
|
||||
}
|
||||
|
||||
async navigateToLogin(): Promise<void> {
|
||||
return this.sendMessage(BridgeMessageType.NAVIGATE_TO_LOGIN);
|
||||
}
|
||||
|
||||
async closeWebView(): Promise<void> {
|
||||
return this.sendMessage(BridgeMessageType.CLOSE_WEBVIEW);
|
||||
}
|
||||
@@ -158,11 +153,6 @@ class AppBridge {
|
||||
return this.sendMessage(BridgeMessageType.SHARE_CONTENT, content);
|
||||
}
|
||||
|
||||
// 로그인 요청
|
||||
async login(credentials?: LoginCredentials): Promise<UserInfo> {
|
||||
return this.sendMessage(BridgeMessageType.LOGIN, credentials);
|
||||
}
|
||||
|
||||
async logout(): Promise<void> {
|
||||
return this.sendMessage(BridgeMessageType.LOGOUT);
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
export const convertCurrencyStringToNumber = (currencyString: string): number => {
|
||||
const cleanedString = currencyString.replace(/[^\d]/g, '');
|
||||
return parseInt(cleanedString, 10);
|
||||
};
|
||||
@@ -1,5 +1,4 @@
|
||||
export * from './use-navigate';
|
||||
export * from './use-app-version';
|
||||
export * from './use-change-bg-color';
|
||||
export * from './use-device-uid';
|
||||
export * from './use-fix-scroll-view-safari';
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
import { useMemo } from 'react';
|
||||
import useLocalStorageState from 'use-local-storage-state';
|
||||
import { config } from '@/shared/configs';
|
||||
import { StorageKeys } from '@/shared/constants/local-storage';
|
||||
|
||||
export const DEFAULT_APP_VERSION = '1.0';
|
||||
export const useAppVersion = () => {
|
||||
const [appVersion] = useLocalStorageState(StorageKeys.AppVersion, { defaultValue: DEFAULT_APP_VERSION });
|
||||
return appVersion;
|
||||
};
|
||||
|
||||
export const webVersion = config.WEB_VERSION.replace(/\b(\d+)(?:\.0\.0)?\b/g, '$1');
|
||||
export const useFullVersion = () => {
|
||||
const appVersion = useAppVersion();
|
||||
const fullVersion = useMemo(() => `${appVersion}.${webVersion}`, [appVersion]);
|
||||
return { fullVersion };
|
||||
};
|
||||
Reference in New Issue
Block a user