diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 31f57bfeb..eb6227ff5 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,7 @@
-
+
@@ -177,7 +177,7 @@
-
+
1660418841831
@@ -424,7 +424,15 @@
1694534513180
-
+
+
+ 1694535688773
+
+
+
+ 1694535688773
+
+
@@ -442,7 +450,6 @@
-
@@ -467,6 +474,7 @@
-
+
+
\ No newline at end of file
diff --git a/src/components/GuideFeedback/index.js b/src/components/GuideFeedback/index.js
index a3b6e2918..579f26a09 100644
--- a/src/components/GuideFeedback/index.js
+++ b/src/components/GuideFeedback/index.js
@@ -2,6 +2,7 @@ import React, { useState } from "react";
import styles from "./index.module.css";
import Modal from 'react-modal';
import Turnstile from "react-turnstile";
+import { useLocation } from "@docusaurus/router";
const customStyles = {
content: {
@@ -24,6 +25,7 @@ const customStyles = {
};
export default function GuideFeedback() {
+ const location = useLocation();
const [feedback, setFeedback] = useState('');
const [inputText, setInputText] = useState('');
const [modalIsOpen, setModalIsOpen] = useState(false);
@@ -41,8 +43,7 @@ export default function GuideFeedback() {
inputText,
feedback,
turnstileToken,
- // route trimming (removing /docs/tutorial/) is done from automata (backend)
- route: window.location.pathname
+ route: location.pathname
}),
mode: 'cors'
}).then(() => {
@@ -88,14 +89,7 @@ export default function GuideFeedback() {
onVerify={(token) => {
setTurnstileToken(token);
}}
-
- theme={
- window
- .getComputedStyle(document.body)
- .getPropertyValue("--ifm-color-primary") === "#ae2a55"
- ? "light"
- : "dark"
- }
+ theme='dark'
style={{
width: '270px',
height: '63px'
diff --git a/src/components/GuideFeedback/modal.js b/src/components/GuideFeedback/modal.js
deleted file mode 100644
index 2294798e2..000000000
--- a/src/components/GuideFeedback/modal.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React from 'react'
-import NiceModal from '@ebay/nice-modal-react';
-
-const modal = ({ closeModal, handleFeedbackChange, handleSubmit }) => {
- return (
-
-
-
- ×
-
Feedback
-
-
-
-
-
- )
-}
-
-export default function GuideFeedbackModal({ fb }) {
-
-
-
- return (
-
-
-
- );
-}
\ No newline at end of file