mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
refactor: standardize naming for load more handlers and navigation items across components
This commit is contained in:
@ -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}
|
||||
|
||||
Reference in New Issue
Block a user