chore(FE-40): hide empty content if is loading

This commit is contained in:
ValdiANS
2025-10-02 16:50:37 +07:00
parent 75a5caa63b
commit e765a7a5fb
+1
View File
@@ -224,6 +224,7 @@ const Table = <TData extends object>({
</div> </div>
{(data.length === 0 || table.getRowModel().rows.length === 0) && {(data.length === 0 || table.getRowModel().rows.length === 0) &&
!isLoading &&
emptyContent} emptyContent}
{data.length > 0 && table.getRowModel().rows.length > 0 && !isLoading && ( {data.length > 0 && table.getRowModel().rows.length > 0 && !isLoading && (