Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion moon/apps/web/components/Issues/IssueDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function IssueDetailPage({ id }: { id: string }) {

useEffect(() => {
fetchDetail()
}, [fetchDetail])
}, [fetchDetail, id])

const [_loadings, setLoadings] = useState<boolean[]>([])
const router = useRouter()
Expand Down
15 changes: 11 additions & 4 deletions moon/apps/web/components/Issues/IssueIndex.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { useState } from 'react'
import { useAtom } from 'jotai'
import { useRouter } from 'next/router'
Expand Down Expand Up @@ -32,7 +34,6 @@ export const IssueIndex = () => {
return (
<>
<FloatingNewDocButton />

<SplitViewContainer>
<IndexPageContainer>
<BreadcrumbTitlebar className='justify-between'>
Expand All @@ -45,11 +46,10 @@ export const IssueIndex = () => {
</Button>
<NewIssueButton />
</BreadcrumbTitlebar>
<IndexPageContent id='/[org]/notes' className={cn('@container', '3xl:max-w-7xl max-w-7xl')}>
<IndexPageContent id='/[org]/issue' className={cn('@container', '3xl:max-w-7xl max-w-7xl')}>
<IssuesContent searching={isSearching} />
</IndexPageContent>
</IndexPageContainer>

<SplitViewDetail />
</SplitViewContainer>
</>
Expand Down Expand Up @@ -101,7 +101,14 @@ export const NewIssueButton = () => {
const { scope } = useScope()

return (
<Button variant='primary' className='bg-[#1f883d]' size={'base'} onClick={() => router.push(`/${scope}/issue/new`)}>
<Button
variant='primary'
className='bg-[#1f883d]'
size={'base'}
onClick={() => {
router.push(`/${scope}/issue/new`)
}}
>
New Issue
</Button>
)
Expand Down
Loading