mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix: dont cross import SyncStatus type
This commit is contained in:
@@ -13,7 +13,7 @@ const imdbRegex = new RegExp(/imdb:\/\/(tt[0-9]+)/);
|
|||||||
const tmdbRegex = new RegExp(/tmdb:\/\/([0-9]+)/);
|
const tmdbRegex = new RegExp(/tmdb:\/\/([0-9]+)/);
|
||||||
const plexRegex = new RegExp(/plex:\/\//);
|
const plexRegex = new RegExp(/plex:\/\//);
|
||||||
|
|
||||||
export interface SyncStatus {
|
interface SyncStatus {
|
||||||
running: boolean;
|
running: boolean;
|
||||||
progress: number;
|
progress: number;
|
||||||
total: number;
|
total: number;
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import LoadingSpinner from '../Common/LoadingSpinner';
|
import LoadingSpinner from '../Common/LoadingSpinner';
|
||||||
import type { PlexSettings } from '../../../server/lib/settings';
|
import type { PlexSettings } from '../../../server/lib/settings';
|
||||||
import type { SyncStatus } from '../../../server/job/plexsync';
|
|
||||||
import useSWR from 'swr';
|
import useSWR from 'swr';
|
||||||
import { useFormik } from 'formik';
|
import { useFormik } from 'formik';
|
||||||
import Button from '../Common/Button';
|
import Button from '../Common/Button';
|
||||||
@@ -35,6 +34,20 @@ const messages = defineMessages({
|
|||||||
cancelscan: 'Cancel Scan',
|
cancelscan: 'Cancel Scan',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
interface Library {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
enabled: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface SyncStatus {
|
||||||
|
running: boolean;
|
||||||
|
progress: number;
|
||||||
|
total: number;
|
||||||
|
currentLibrary: Library;
|
||||||
|
libraries: Library[];
|
||||||
|
}
|
||||||
|
|
||||||
const SettingsPlex: React.FC = () => {
|
const SettingsPlex: React.FC = () => {
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
const { data, error, revalidate } = useSWR<PlexSettings>(
|
const { data, error, revalidate } = useSWR<PlexSettings>(
|
||||||
|
Reference in New Issue
Block a user