mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Fix download button
This commit is contained in:
parent
9bd31071f9
commit
faed749691
1 changed files with 3 additions and 8 deletions
|
@ -1,5 +1,6 @@
|
||||||
import { useMemo } from "react";
|
import { useMemo } from "react";
|
||||||
|
|
||||||
|
import { Button } from "@/components/Button";
|
||||||
import { Icon, Icons } from "@/components/Icon";
|
import { Icon, Icons } from "@/components/Icon";
|
||||||
import { OverlayPage } from "@/components/overlays/OverlayPage";
|
import { OverlayPage } from "@/components/overlays/OverlayPage";
|
||||||
import { Menu } from "@/components/player/internals/ContextMenu";
|
import { Menu } from "@/components/player/internals/ContextMenu";
|
||||||
|
@ -49,15 +50,9 @@ export function DownloadView({ id }: { id: string }) {
|
||||||
have control over how the downloads are provided.
|
have control over how the downloads are provided.
|
||||||
</Menu.Paragraph>
|
</Menu.Paragraph>
|
||||||
|
|
||||||
<a
|
<Button className="w-full" href={downloadUrl} theme="purple">
|
||||||
href={downloadUrl}
|
|
||||||
rel="noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
download
|
|
||||||
className="cursor-pointer flex justify-center items-center w-full p-2.5 !mt-6 rounded-lg bg-video-context-download-button hover:bg-video-context-download-hover transition-colors duration-150 text-white font-medium"
|
|
||||||
>
|
|
||||||
Download
|
Download
|
||||||
</a>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</Menu.Section>
|
</Menu.Section>
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in a new issue