mirror of
https://github.com/logos-storage/logos-storage-marketplace-ui.git
synced 2026-05-17 06:49:32 +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() {
|
||||
const [cid, setCid] = useState("");
|
||||
console.info(cid);
|
||||
const onDownload = () => {
|
||||
const url = CodexSdk.url() + "/api/codex/v1/data/";
|
||||
window.open(url + cid, "_target");
|
||||
window.open(url + cid + "/network", "_target");
|
||||
};
|
||||
|
||||
const onCidChange = (e: ChangeEvent<HTMLInputElement>) =>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user