mirror of
https://github.com/sern-handler/website
synced 2026-06-06 01:16:47 +00:00
actually fix builds
This commit is contained in:
18
.idea/workspace.xml
generated
18
.idea/workspace.xml
generated
@@ -4,7 +4,7 @@
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="53dd69d3-e01a-4656-b414-c727f5aa549a" name="Changes" comment="feedback system" />
|
||||
<list default="true" id="53dd69d3-e01a-4656-b414-c727f5aa549a" name="Changes" comment="two dirs back" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
@@ -177,7 +177,7 @@
|
||||
<workItem from="1694095607446" duration="2640000" />
|
||||
<workItem from="1694170854677" duration="225000" />
|
||||
<workItem from="1694463335421" duration="56000" />
|
||||
<workItem from="1694533500197" duration="1539000" />
|
||||
<workItem from="1694533500197" duration="2188000" />
|
||||
</task>
|
||||
<task id="LOCAL-00001" summary="feat: remove old index.html in static/">
|
||||
<created>1660418841831</created>
|
||||
@@ -424,7 +424,15 @@
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1694534513180</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="35" />
|
||||
<task id="LOCAL-00035" summary="two dirs back">
|
||||
<option name="closed" value="true" />
|
||||
<created>1694535688773</created>
|
||||
<option name="number" value="00035" />
|
||||
<option name="presentableId" value="LOCAL-00035" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1694535688773</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="36" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
@@ -442,7 +450,6 @@
|
||||
</option>
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="chore: fix typo" />
|
||||
<MESSAGE value="feat: adding width attr" />
|
||||
<MESSAGE value="feat: adding blogs" />
|
||||
<MESSAGE value="feat: blogwork" />
|
||||
@@ -467,6 +474,7 @@
|
||||
<MESSAGE value="move to mdx" />
|
||||
<MESSAGE value="add title" />
|
||||
<MESSAGE value="feedback system" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="feedback system" />
|
||||
<MESSAGE value="two dirs back" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="two dirs back" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -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'
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
import React from 'react'
|
||||
import NiceModal from '@ebay/nice-modal-react';
|
||||
|
||||
const modal = ({ closeModal, handleFeedbackChange, handleSubmit }) => {
|
||||
return (
|
||||
<div>
|
||||
<div className="modal">
|
||||
<div className="modal-content">
|
||||
<span className="close" onClick={closeModal}>×</span>
|
||||
<h2>Feedback</h2>
|
||||
<textarea
|
||||
placeholder="Enter your feedback..."
|
||||
value={feedback}
|
||||
onChange={handleFeedbackChange}
|
||||
></textarea>
|
||||
<button onClick={handleSubmit}>Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default function GuideFeedbackModal({ fb }) {
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div>
|
||||
<modal />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user