mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
fix: enable swipe-back suspension on more drawer and remove unused variable (#215)
This commit is contained in:
1 parent
c3d6549f01
commit
358e0f18aa
2 files changed
+1
-2
No files matched your search
@@ -30,7 +30,7 @@ export function MoreDrawer({ isOpen, onClose }: MoreDrawerProps) {
|
||||
const [commandsOpen, setCommandsOpen] = useState(false)
|
||||
const [mentionFileBrowserOpen, setMentionFileBrowserOpen] = useState(false)
|
||||
const swipeRef = useRef<HTMLDivElement>(null)
|
||||
const { bind } = useSwipeBack(onClose, { enabled: true, suspendsRouteSwipe: false })
|
||||
const { bind } = useSwipeBack(onClose, { enabled: true, suspendsRouteSwipe: true })
|
||||
const { logout } = useAuth()
|
||||
const { data: health } = useServerHealth()
|
||||
const isSessionDetail = /^\/repos\/\d+\/sessions\/[^/]+$/.test(location.pathname)
|
||||
|
||||
@@ -70,7 +70,6 @@ export function buildNavModel(pathname: string): NavModel {
|
||||
|
||||
const sessionDetailMatch = /^\/repos\/(\d+)\/sessions\/[^/]+$/.exec(pathname)
|
||||
if (sessionDetailMatch) {
|
||||
const id = sessionDetailMatch[1]
|
||||
const items: MoreDrawerItem[] = [
|
||||
{ key: 'files', label: 'Files', icon: Folder, dialog: 'files' },
|
||||
{ key: 'mcp', label: 'MCP', icon: Plug, dialog: 'mcp' },
|
||||
|
||||
Reference in new issue
Block a user