This commit is contained in:
focp212@naver.com
2025-10-30 13:21:31 +09:00
parent 1d9af3dafa
commit e994dc7ec3
29 changed files with 4 additions and 1563 deletions

View File

@@ -8,4 +8,4 @@ export * from './use-location-permission';
export * from './use-window-focus-change';
export * from './use-router-listener';
export * from './use-scroll-to-top';
export * from './use-app-page-speed';

View File

@@ -1,15 +0,0 @@
import { useEffectOnce } from 'react-use';
import useLocalStorageState from 'use-local-storage-state';
import { StorageKeys } from '@/shared/constants/local-storage';
import { setAfterPageRendered } from '@/shared/lib';
export const useAppPagingSpeed = () => {
return useLocalStorageState(StorageKeys.AppPagingSpeed, { defaultValue: '250' });
};
export const useEffectOnceAfterPageRendered = (callback: () => void) => {
useEffectOnce(() => {
setAfterPageRendered(callback);
});
};

View File

@@ -1,10 +0,0 @@
import { useBlocker } from '@use-blocker';
export const useBlockBack = (blockPaths: string[]) => {
useBlocker(({ nextLocation }) => {
if (blockPaths.includes(nextLocation.pathname)) {
return true;
}
return false;
});
};

View File

@@ -437,4 +437,7 @@ main.home-main{
.link-payment-detail-button button {
width: 100%;
}
.main.pop{
padding-bottom: env(safe-area-inset-bottom);
}