mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-21 06:59:17 -04:00
* d * wip * Nit: margin and padding tweak * UI design tweaks * Update Job.tsx * Improve UI * [WIP] - Refactor job manager * remove invalidate explorer event on thumb generation. the event above performs atomic updates on the front end when new thumbnails are generated, now just need to make that work * prettier formatting + removed unused imports * UI tweaks * progress bar width adjustment * tweaks * fix em * fix thumbnail generation * fix progress bar * fix time --------- Co-authored-by: Jamie Pine <ijamespine@me.com> Co-authored-by: Brendan Allan <brendonovich@outlook.com> Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
15 lines
437 B
TypeScript
15 lines
437 B
TypeScript
import { CheckCircle } from 'phosphor-react';
|
|
import { Loader } from '@sd/ui';
|
|
import { useLibraryQuery } from '~/../packages/client/src';
|
|
|
|
export default () => {
|
|
const { data: runningJobs } = useLibraryQuery(['jobs.getRunning']);
|
|
const isRunningJob = runningJobs?.length !== undefined && runningJobs?.length > 0;
|
|
|
|
return isRunningJob ? (
|
|
<Loader className="h-[20px] w-[20px]" />
|
|
) : (
|
|
<CheckCircle className="h-5 w-5" />
|
|
);
|
|
};
|