feat: add empty placeholder when search result is empty (#1416)

* feat: add empty placeholder when search result is empty

* Update web/src/pages/ResourcesDashboard.tsx

Co-authored-by: boojack <stevenlgtm@gmail.com>

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
This commit is contained in:
CorrectRoadH 2023-03-26 21:07:08 +08:00 committed by GitHub
parent dbb095fff4
commit 6b703c4678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,7 +305,7 @@ const ResourcesDashboard = () => {
<span></span>
</div>
)}
{resources.length === 0 ? (
{resourceList.length === 0 ? (
<p className="w-full text-center text-base my-6 mt-8">{t("resources.no-resources")}</p>
) : (
resourceList