rqbit desktop configuration before startup works

This commit is contained in:
Igor Katson 2023-12-06 15:29:11 +00:00
parent a3475784e9
commit ee996012af
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 340 additions and 8 deletions

View file

@ -2,7 +2,7 @@ import { MouseEventHandler, RefObject, createContext, useContext, useEffect, use
import { ProgressBar, Button, Container, Row, Col, Alert, Modal, Form, Spinner } from 'react-bootstrap';
import { AddTorrentResponse, TorrentDetails, TorrentId, TorrentStats, ErrorDetails as ApiErrorDetails, STATE_INITIALIZING, STATE_LIVE, STATE_PAUSED, STATE_ERROR, RqbitAPI, AddTorrentOptions } from './api-types';
interface Error {
export interface Error {
text: string,
details?: ApiErrorDetails,
}
@ -409,7 +409,7 @@ const ErrorDetails = (props: { details: ApiErrorDetails | null | undefined }) =>
</>
}
const ErrorComponent = (props: { error: Error | null, remove?: () => void }) => {
export const ErrorComponent = (props: { error: Error | null, remove?: () => void }) => {
let { error, remove } = props;
if (error == null) {