Skip to content

Commit

Permalink
placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
djyde committed Jul 11, 2023
1 parent eca2232 commit 65f553c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pages/dashboard/project/[projectId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { getSession } from '../../../utils.server'
import { Footer } from '../../../components/Footer'
import { MainLayout } from '../../../components/Layout'
import { AiOutlineCode, AiOutlineUnorderedList, AiOutlineControl, AiOutlineCheck, AiOutlineClose, AiOutlineSmile } from 'react-icons/ai'
import { List, Stack, Box, Text, Group, Anchor, Button, Pagination, Textarea, Title } from '@mantine/core'
import { List, Stack, Box, Text, Group, Anchor, Button, Pagination, Textarea, Title, Center } from '@mantine/core'

const getComments = async ({ queryKey }) => {
const [_key, { projectId, page }] = queryKey
Expand Down Expand Up @@ -223,6 +223,17 @@ function ProjectPage(props: {
)
})}
</List>
{getCommentsQuery.data?.data.length === 0 && (
<Box p={'xl'} sx={{
backgroundColor: '#fff'
}}>
<Center>
<Text color="gray" size="sm">
No comments yet
</Text>
</Center>
</Box>
)}
<Box>
<Pagination total={getCommentsQuery.data?.pageCount || 0} value={page} onChange={count => {
setPage(count)
Expand Down

0 comments on commit 65f553c

Please sign in to comment.