🔧 Added scaffold for the qBittorrent connection form

This commit is contained in:
2023-09-05 20:27:50 -04:00
parent 093dcc448c
commit c591f1db2f
7 changed files with 61 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
import React, { ReactElement, useCallback, useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import { getQBitTorrentClientInfo } from "../../actions/settings.actions";
export const QbittorrentConnectionForm = (): ReactElement => {
const dispatch = useDispatch();
const torrents = useSelector((state: RootState) => state.settings.torrentsList)
useEffect(() => {
dispatch(getQBitTorrentClientInfo());
}, [])
return (
<div className="is-clearfix">
<pre> {JSON.stringify(torrents, null, 4)} </pre>
</div>
);
};
export default QbittorrentConnectionForm;