From bcf86f589bc3631e6efdf553ebf15a13c35e85cb Mon Sep 17 00:00:00 2001
From: p <>
Date: Sat, 16 Sep 2023 12:04:43 +0530
Subject: [PATCH] hover
---
SVG/search.js | 2 +-
pages/_app.js | 3 ++-
pages/post-detail/[id]/[slug].js | 46 +++++++++++++++++++++++++++-----
3 files changed, 43 insertions(+), 8 deletions(-)
diff --git a/SVG/search.js b/SVG/search.js
index 9ac1e59..0b43f1d 100644
--- a/SVG/search.js
+++ b/SVG/search.js
@@ -3,7 +3,7 @@ import React from "react";
export const SearchSVG = () => {
return (
);
};
diff --git a/pages/_app.js b/pages/_app.js
index c3806a2..6dd1c85 100644
--- a/pages/_app.js
+++ b/pages/_app.js
@@ -4,7 +4,7 @@ import { RecoilRoot } from 'recoil'
import Layout from '../components/Layout'
import '../styles/globals.css'
import '../styles/nprogress.css'
-
+import { ToastContainer } from 'react-toastify';
NProgress.configure({ showSpinner: false })
Router.events.on('routeChangeStart', () => NProgress.start())
Router.events.on('routeChangeComplete', () => NProgress.done())
@@ -14,6 +14,7 @@ function MyApp({ Component, pageProps }) {
return (
+
diff --git a/pages/post-detail/[id]/[slug].js b/pages/post-detail/[id]/[slug].js
index 2bea30b..47e8e77 100644
--- a/pages/post-detail/[id]/[slug].js
+++ b/pages/post-detail/[id]/[slug].js
@@ -5,6 +5,8 @@ import { getListComment, movieDetailsPost, postComment } from '../../../service/
import moment from 'moment';
import { formatBytes } from '../../../Common/CardExpanded';
import YouTube from "react-youtube";
+import { FaRegCopy } from 'react-icons/fa'
+import ToastMsg from '../../../Common/ToastMsg';
const Details = () => {
let trackers = [
@@ -123,6 +125,25 @@ const Details = () => {
autoplay: 0,
},
};
+ const [disabledToast,setDisabledToast]=useState(false)
+ const copyToClipBoard = async() => {
+ if(disabledToast){
+ return
+ }
+ try {
+
+ await navigator.clipboard.writeText(magnateDownload);
+ ToastMsg("Copied!","success")
+ setDisabledToast(true)
+ setTimeout(()=>{
+ setDisabledToast(false)
+ },3000)
+ }
+ catch (err) {
+ console.log("pp",err)
+ ToastMsg('Failed to copy!',"error");
+ }
+ };
return (
@@ -137,7 +158,7 @@ const Details = () => {
{data?.name}
@@ -164,17 +185,30 @@ const Details = () => {
-
+
{
window.location.reload()