Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -300,7 +300,7 @@ export function UniversalListPage<T>({
|
||||
setSelectedItem(item);
|
||||
setIsModalOpen(true);
|
||||
} else if (detailMode === 'page') {
|
||||
router.push(`/${locale}${config.basePath}/${id}`);
|
||||
router.push(`/${locale}${config.basePath}/${id}?mode=view`);
|
||||
}
|
||||
},
|
||||
[config.basePath, config.detailMode, getItemId, locale, router]
|
||||
@@ -309,13 +309,13 @@ export function UniversalListPage<T>({
|
||||
const handleEdit = useCallback(
|
||||
(item: T) => {
|
||||
const id = getItemId(item);
|
||||
router.push(`/${locale}${config.basePath}/${id}/edit`);
|
||||
router.push(`/${locale}${config.basePath}/${id}?mode=edit`);
|
||||
},
|
||||
[config.basePath, getItemId, locale, router]
|
||||
);
|
||||
|
||||
const handleCreate = useCallback(() => {
|
||||
router.push(`/${locale}${config.basePath}/new`);
|
||||
router.push(`/${locale}${config.basePath}?mode=new`);
|
||||
}, [config.basePath, locale, router]);
|
||||
|
||||
// ===== 삭제 핸들러 =====
|
||||
|
||||
Reference in New Issue
Block a user