mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 23:08:54 +02:00
refactor(v2): move source files to be under website/src directory (#1609)
* refactor(v2): move source files to be under website/src directory * misc: rename src constant
This commit is contained in:
parent
da3c91373e
commit
ffbc7a37f8
29 changed files with 56 additions and 37 deletions
32
website/src/pages/feedback/index.js
Normal file
32
website/src/pages/feedback/index.js
Normal file
|
@ -0,0 +1,32 @@
|
|||
/**
|
||||
* 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 Layout from '@theme/Layout';
|
||||
|
||||
import canny from '../../scripts/canny';
|
||||
|
||||
const BOARD_TOKEN = '054e0e53-d951-b14c-7e74-9eb8f9ed2f91';
|
||||
|
||||
function Feedback() {
|
||||
useEffect(() => {
|
||||
canny();
|
||||
window.Canny &&
|
||||
window.Canny('render', {
|
||||
boardToken: BOARD_TOKEN,
|
||||
basePath: '/feedback',
|
||||
});
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<div className="container margin-vert--xl" data-canny />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
export default Feedback;
|
Loading…
Add table
Add a link
Reference in a new issue