mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-07 13:22:26 +02:00
* feat(v2): embed Canny feedback widget * docs(v2): Mention source of Canny widget * misc(v2): add newline
28 lines
650 B
JavaScript
28 lines
650 B
JavaScript
/**
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import React, {useEffect} from 'react';
|
|
import canny from '../../scripts/canny';
|
|
|
|
import styles from './styles.module.css';
|
|
|
|
const BOARD_TOKEN = '054e0e53-d951-b14c-7e74-9eb8f9ed2f91';
|
|
|
|
function Feedback() {
|
|
useEffect(() => {
|
|
canny();
|
|
window.Canny &&
|
|
window.Canny('render', {
|
|
boardToken: BOARD_TOKEN,
|
|
basePath: '/feedback',
|
|
});
|
|
}, []);
|
|
|
|
return <div className={styles.feedbackPage} data-canny />;
|
|
}
|
|
|
|
export default Feedback;
|