refactor: standardize naming for load more handlers and navigation items across components

This commit is contained in:
twwu
2025-05-16 15:43:28 +08:00
parent 56b66b8a57
commit a008c04331
4 changed files with 26 additions and 20 deletions

View File

@ -57,7 +57,7 @@ const AppNav = () => {
{ revalidateFirstPage: false },
)
const handleLoadmore = useCallback(() => {
const handleLoadMore = useCallback(() => {
setSize(size => size + 1)
}, [setSize])
@ -123,10 +123,10 @@ const AppNav = () => {
activeSegment={['apps', 'app']}
link='/apps'
curNav={appDetail}
navs={navItems}
navigationItems={navItems}
createText={t('common.menus.newApp')}
onCreate={openModal}
onLoadmore={handleLoadmore}
onLoadMore={handleLoadMore}
/>
<CreateAppModal
show={showNewAppDialog}