불필요 파일 제거

This commit is contained in:
focp212@naver.com
2025-10-15 10:35:01 +09:00
parent 66524b36bc
commit 8446ad91e3
21 changed files with 3 additions and 1768 deletions

View File

@@ -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);
}

View File

@@ -1,4 +0,0 @@
export const convertCurrencyStringToNumber = (currencyString: string): number => {
const cleanedString = currencyString.replace(/[^\d]/g, '');
return parseInt(cleanedString, 10);
};

View File

@@ -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';

View File

@@ -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 };
};

View File

@@ -1,8 +0,0 @@
import React from 'react';
import { Fragment } from 'react/jsx-runtime';
import { useFullVersion } from '@/shared/lib/hooks';
export const FullAppVersion = React.memo(function FullAppVersion() {
const { fullVersion } = useFullVersion();
return <Fragment>{fullVersion}</Fragment>;
});