From 4f589f9a69e157d6e9c17785af982f423ee13859 Mon Sep 17 00:00:00 2001 From: Do Duc Quan <99700700+ducquando@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:08:03 +0700 Subject: [PATCH] Remove unused functions --- src/core/react/MarkerButton.tsx | 36 --------------------------------- src/core/react/UserReport.tsx | 29 -------------------------- 2 files changed, 65 deletions(-) delete mode 100644 src/core/react/MarkerButton.tsx delete mode 100644 src/core/react/UserReport.tsx diff --git a/src/core/react/MarkerButton.tsx b/src/core/react/MarkerButton.tsx deleted file mode 100644 index df4f2f3..0000000 --- a/src/core/react/MarkerButton.tsx +++ /dev/null @@ -1,36 +0,0 @@ -/* - * codeslide.net - * - * @license - * Forked from mydraft.cc by Sebastian Stehle - * Copyright (c) Do Duc Quan. All rights reserved. -*/ - -import { SmileOutlined } from '@ant-design/icons'; -import markerSDK, { MarkerSdk } from '@marker.io/browser'; -import { Button } from 'antd'; -import * as React from 'react'; - -export const MarkerButton = () => { - const [widget, setWidget] = React.useState(); - - React.useEffect(() => { - async function loadMarker() { - const widget = await markerSDK.loadWidget({ - project: '63a086196d73a2e6dfbfbb40', - }); - - widget.hide(); - - setWidget(widget); - } - - loadMarker(); - }, []); - - return ( - - ); -}; \ No newline at end of file diff --git a/src/core/react/UserReport.tsx b/src/core/react/UserReport.tsx deleted file mode 100644 index 9a42cc0..0000000 --- a/src/core/react/UserReport.tsx +++ /dev/null @@ -1,29 +0,0 @@ -/* - * codeslide.net - * - * @license - * Forked from mydraft.cc by Sebastian Stehle - * Copyright (c) Do Duc Quan. All rights reserved. -*/ - -import * as React from 'react'; - -export const UserReport = React.memo(() => { - React.useEffect(() => { - const anyWindow = window as any; - - anyWindow['_urq'] = anyWindow['_urq'] || []; - anyWindow['_urq'].push(['initSite', 'b64f8170-a1e3-46fa-8c63-34514d064c15']); - - setTimeout(() => { - const script = document.createElement('script'); - script.async = true; - script.type = 'text/javascript'; - script.src = 'https://cdn.userreport.com/userreport.js'; - - document.body.appendChild(script); - }, 1000); - }); - - return null; -});