remove proxied download button (for now)

This commit is contained in:
spencerwooo
2022-01-15 21:37:06 +08:00
parent ddf6faca39
commit 0bde48af01
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -32,14 +32,14 @@ const VideoPreview: React.FC<{ file: any }> = ({ file }) => {
btnText="Download"
btnIcon="file-download"
/>
<DownloadButton
{/* <DownloadButton
onClickCallback={() =>
window.open(`/api/proxy?url=${encodeURIComponent(file['@microsoft.graph.downloadUrl'])}`)
}
btnColor="teal"
btnText="Proxy download"
btnIcon="download"
/>
/> */}
<DownloadButton
onClickCallback={() => {
clipboard.copy(`${getBaseUrl()}/api?path=${asPath}&raw=true`)