mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-01 20:16:36 +08:00
fix: stabilize library paths and subscription matching
This commit is contained in:
@@ -3,7 +3,7 @@ import { AdminLibraryTable } from './AdminLibraryTable'
|
||||
import { useAdminLibraryPanel } from './useAdminLibraryPanel'
|
||||
|
||||
export function AdminLibraryPanel() {
|
||||
const { libs, createForm, newRoots, editableRoots, rootActions, libraryActions } = useAdminLibraryPanel()
|
||||
const { libs, createForm, editableRoots, rootActions, libraryActions } = useAdminLibraryPanel()
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
@@ -20,11 +20,8 @@ export function AdminLibraryPanel() {
|
||||
/>
|
||||
<AdminLibraryTable
|
||||
libs={libs}
|
||||
newRootDraft={newRoots.newRootDraft}
|
||||
editableRootDraft={editableRoots.editableRootDraft}
|
||||
onNewRootChange={newRoots.setNewRootDraft}
|
||||
onEditableRootChange={editableRoots.setEditableRootDraft}
|
||||
onAddRoot={newRoots.addLibraryRoot}
|
||||
onSaveRoot={rootActions.saveLibraryRoot}
|
||||
onScanRoot={rootActions.scanLibraryRoot}
|
||||
onToggleRoot={rootActions.toggleLibraryRoot}
|
||||
|
||||
Reference in New Issue
Block a user