🎨 Rename "services" to "apps" in entire project

This commit is contained in:
Manuel Ruwe
2022-12-18 22:27:01 +01:00
parent 1e0a90f2ac
commit 661c05bc50
69 changed files with 661 additions and 495 deletions

View File

@@ -31,7 +31,7 @@ export const UsenetComponent: FunctionComponent = () => {
const { t } = useTranslation('modules/usenet');
const [selectedServiceId, setSelectedService] = useState<string | null>(downloadServices[0]?.id);
const { data } = useGetUsenetInfo({ serviceId: selectedServiceId! });
const { data } = useGetUsenetInfo({ appId: selectedServiceId! });
useEffect(() => {
if (!selectedServiceId && downloadServices.length) {
@@ -39,8 +39,8 @@ export const UsenetComponent: FunctionComponent = () => {
}
}, [downloadServices, selectedServiceId]);
const { mutate: pause } = usePauseUsenetQueue({ serviceId: selectedServiceId! });
const { mutate: resume } = useResumeUsenetQueue({ serviceId: selectedServiceId! });
const { mutate: pause } = usePauseUsenetQueue({ appId: selectedServiceId! });
const { mutate: resume } = useResumeUsenetQueue({ appId: selectedServiceId! });
if (downloadServices.length === 0) {
return (
@@ -98,10 +98,10 @@ export const UsenetComponent: FunctionComponent = () => {
/>
)}
<Tabs.Panel value="queue">
<UsenetQueueList serviceId={selectedServiceId} />
<UsenetQueueList appId={selectedServiceId} />
</Tabs.Panel>
<Tabs.Panel value="history">
<UsenetHistoryList serviceId={selectedServiceId} />
<UsenetHistoryList appId={selectedServiceId} />
</Tabs.Panel>
</Tabs>
);