mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 07:25:20 +00:00
Added and updated copyright headers. Added some missing Flow types. Removed an invalid prop-types import.
30 lines
644 B
JavaScript
30 lines
644 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* @emails react-core
|
|
* @flow
|
|
*/
|
|
|
|
// $FlowExpectedError
|
|
import navCommunity from '../../content/community/nav.yml';
|
|
// $FlowExpectedError
|
|
import navDocs from '../../content/docs/nav.yml';
|
|
// $FlowExpectedError
|
|
import navTutorial from '../../content/tutorial/nav.yml';
|
|
|
|
const sectionListDocs = navDocs.map((item: Object): Object => ({
|
|
...item,
|
|
directory: 'docs',
|
|
}));
|
|
|
|
const sectionListCommunity = navCommunity.map((item: Object): Object => ({
|
|
...item,
|
|
directory: 'community',
|
|
}));
|
|
|
|
export {
|
|
sectionListCommunity,
|
|
sectionListDocs,
|
|
navTutorial as sectionListTutorial,
|
|
};
|