hide pagination when there no result on question query
This commit is contained in:
@@ -59,6 +59,7 @@ export const QuestionsList: FC<Props> = ({ questions, title, pagination }) => {
|
||||
<div className="bg-gray-200 p-4 rounded my-2">
|
||||
<div className="flex">
|
||||
<h2 className="text-gray-500 font-medium text-xl">{title}</h2>
|
||||
{questions.length > 0 &&
|
||||
<div className="ml-auto text-sm sm:text-base text-gray-700">
|
||||
<button
|
||||
className="p-2"
|
||||
@@ -76,6 +77,7 @@ export const QuestionsList: FC<Props> = ({ questions, title, pagination }) => {
|
||||
<FaArrowRight />
|
||||
</button>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<hr className="border-t border-gray-400 m-px" />
|
||||
<div className="p-2 text-sm">
|
||||
|
||||
Reference in New Issue
Block a user