Use react-bs icons, remove bootstrap-icons css
This commit is contained in:
parent
eb25ef3cda
commit
d768211457
24 changed files with 83 additions and 8297 deletions
|
|
@ -4,12 +4,12 @@ import { AddTorrentResponse, AddTorrentOptions } from "../api-types";
|
|||
import { AppContext, APIContext } from "../context";
|
||||
import { ErrorComponent } from "./ErrorComponent";
|
||||
import { formatBytes } from "../helper/formatBytes";
|
||||
import { Error } from "../rqbit-web";
|
||||
import { ErrorWithLabel } from "../rqbit-web";
|
||||
|
||||
export const FileSelectionModal = (props: {
|
||||
onHide: () => void;
|
||||
listTorrentResponse: AddTorrentResponse | null;
|
||||
listTorrentError: Error | null;
|
||||
listTorrentError: ErrorWithLabel | null;
|
||||
listTorrentLoading: boolean;
|
||||
data: string | File;
|
||||
}) => {
|
||||
|
|
@ -23,7 +23,7 @@ export const FileSelectionModal = (props: {
|
|||
|
||||
const [selectedFiles, setSelectedFiles] = useState<number[]>([]);
|
||||
const [uploading, setUploading] = useState(false);
|
||||
const [uploadError, setUploadError] = useState<Error | null>(null);
|
||||
const [uploadError, setUploadError] = useState<ErrorWithLabel | null>(null);
|
||||
const [unpopularTorrent, setUnpopularTorrent] = useState(false);
|
||||
const [outputFolder, setOutputFolder] = useState<string>("");
|
||||
const ctx = useContext(AppContext);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue