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="bg-gray-200 p-4 rounded my-2">
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
<h2 className="text-gray-500 font-medium text-xl">{title}</h2>
|
<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">
|
<div className="ml-auto text-sm sm:text-base text-gray-700">
|
||||||
<button
|
<button
|
||||||
className="p-2"
|
className="p-2"
|
||||||
@@ -76,6 +77,7 @@ export const QuestionsList: FC<Props> = ({ questions, title, pagination }) => {
|
|||||||
<FaArrowRight />
|
<FaArrowRight />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<hr className="border-t border-gray-400 m-px" />
|
<hr className="border-t border-gray-400 m-px" />
|
||||||
<div className="p-2 text-sm">
|
<div className="p-2 text-sm">
|
||||||
|
|||||||
Reference in New Issue
Block a user