Browse Source

add Feedback

visuddhinanda 2 years ago
parent
commit
40eaae8b23

+ 24 - 0
dashboard/src/components/general/Feedback.tsx

@@ -0,0 +1,24 @@
+import { useIntl } from "react-intl";
+
+const FeedbackWidget = () => {
+  const intl = useIntl();
+  return (
+    <>
+      {process.env.REACT_APP_QUESTIONNAIRE_LINK ? (
+        <span>
+          请点击
+          <a
+            href={process.env.REACT_APP_QUESTIONNAIRE_LINK}
+            target="_blank"
+            rel="noreferrer"
+          >
+            腾讯问卷
+          </a>
+          填写您的反馈
+        </span>
+      ) : undefined}
+    </>
+  );
+};
+
+export default FeedbackWidget;

+ 2 - 0
dashboard/src/components/library/FooterBar.tsx

@@ -1,6 +1,7 @@
 import { Link } from "react-router-dom";
 import { Layout, Row, Col, Typography } from "antd";
 import BeiAn from "../general/BeiAn";
+import Feedback from "../general/Feedback";
 
 const { Footer } = Layout;
 const { Paragraph } = Typography;
@@ -24,6 +25,7 @@ const FooterBarWidget = () => {
         </Col>
         <Col span={16}>
           <Paragraph strong>问题反馈</Paragraph>
+          <Feedback />
         </Col>
       </Row>
       <Row>

+ 7 - 1
dashboard/src/components/studio/Footer.tsx

@@ -1,9 +1,15 @@
 import BeiAn from "../general/BeiAn";
+import Feedback from "../general/Feedback";
 
 const FooterWidget = () => {
   return (
     <div>
-      <BeiAn />
+      <div>
+        <Feedback />
+      </div>
+      <div>
+        <BeiAn />
+      </div>
     </div>
   );
 };