Unify not found messaging (#1020)

* Move all not found messages into list components

* match the original style

* Use loading indicators
This commit is contained in:
Craig Alexander
2025-08-11 03:18:33 -04:00
committed by GitHub
parent 507c77fdbb
commit dc26354020
8 changed files with 43 additions and 52 deletions

View File

@@ -168,17 +168,13 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
<div className={`boxed-content ${gridView}`}>
<div className={`video-list ${viewStyle} ${gridViewGrid}`}>
{!hasVideos && (
<>
<h2>No videos found...</h2>
<p>
Try going to the <Link to={Routes.Downloads}>downloads page</Link> to start the
scan and download tasks.
</p>
</>
)}
<VideoList videoList={videoList} viewStyle={viewStyle} refreshVideoList={setRefresh} />
{!hasVideos && (
<p>
Try going to the <Link to={Routes.Downloads}>downloads page</Link> to start the scan
and download tasks.
</p>
)}
</div>
</div>
{pagination && (