DBMS Submit static webpage
Removed all fetch function
This commit is contained in:
@@ -15,14 +15,11 @@ function FileDialog(props) {
|
||||
<dialog open={props.showStatus}>
|
||||
<p>{props.file.filename}</p>
|
||||
<p>
|
||||
Download 使用浏览器下载原文件
|
||||
Download using browser
|
||||
<br />
|
||||
Play 调用网页播放器播放
|
||||
Play on the web page
|
||||
<br />
|
||||
</p>
|
||||
<a href={downloadURL} download>
|
||||
<button>Download</button>
|
||||
</a>
|
||||
<button
|
||||
onClick={() => {
|
||||
props.setPlayingFile(props.file);
|
||||
@@ -33,11 +30,10 @@ function FileDialog(props) {
|
||||
</button>
|
||||
<button
|
||||
onClick={() => {
|
||||
navigate(`/share/${props.file.id}`);
|
||||
props.setShowStatus(false);
|
||||
navigate(`/file/${props.file.id}`);
|
||||
}}
|
||||
>
|
||||
Share
|
||||
Info
|
||||
</button>
|
||||
<button onClick={() => props.setShowStatus(false)}>Close</button>
|
||||
</dialog>
|
||||
|
||||
Reference in New Issue
Block a user