mirror of
https://github.com/logos-storage/logos-storage-marketplace-ui.git
synced 2026-01-08 00:13:06 +00:00
Download the file from the network
This commit is contained in:
parent
fa54c23032
commit
2aeb2f005f
@ -5,10 +5,9 @@ import { CodexSdk } from "../../sdk/codex";
|
|||||||
|
|
||||||
export function Download() {
|
export function Download() {
|
||||||
const [cid, setCid] = useState("");
|
const [cid, setCid] = useState("");
|
||||||
console.info(cid);
|
|
||||||
const onDownload = () => {
|
const onDownload = () => {
|
||||||
const url = CodexSdk.url() + "/api/codex/v1/data/";
|
const url = CodexSdk.url() + "/api/codex/v1/data/";
|
||||||
window.open(url + cid, "_target");
|
window.open(url + cid + "/network", "_target");
|
||||||
};
|
};
|
||||||
|
|
||||||
const onCidChange = (e: ChangeEvent<HTMLInputElement>) =>
|
const onCidChange = (e: ChangeEvent<HTMLInputElement>) =>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user