aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r--packages/website/ts/components/documentation/docs_top_bar.tsx (renamed from packages/website/ts/components/documentation/docs_content_top_bar.tsx)10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/website/ts/components/documentation/docs_content_top_bar.tsx b/packages/website/ts/components/documentation/docs_top_bar.tsx
index 04385cfdb..6a050d398 100644
--- a/packages/website/ts/components/documentation/docs_content_top_bar.tsx
+++ b/packages/website/ts/components/documentation/docs_top_bar.tsx
@@ -9,13 +9,13 @@ import { Deco, Key, WebsitePaths } from 'ts/types';
import { constants } from 'ts/utils/constants';
import { Translate } from 'ts/utils/translate';
-export interface DocsContentTopBarProps {
+export interface DocsTopBarProps {
location: Location;
translate: Translate;
sectionNameToLinks?: ObjectMap<ALink[]>;
}
-interface DocsContentTopBarState {
+interface DocsTopBarState {
isDrawerOpen: boolean;
}
@@ -26,14 +26,14 @@ interface MenuItemInfo {
textStyle: React.CSSProperties;
}
-export class DocsContentTopBar extends React.Component<DocsContentTopBarProps, DocsContentTopBarState> {
- constructor(props: DocsContentTopBarProps) {
+export class DocsTopBar extends React.Component<DocsTopBarProps, DocsTopBarState> {
+ constructor(props: DocsTopBarProps) {
super(props);
this.state = {
isDrawerOpen: false,
};
}
- public componentWillReceiveProps(nextProps: DocsContentTopBarProps): void {
+ public componentWillReceiveProps(nextProps: DocsTopBarProps): void {
if (nextProps.location.pathname !== this.props.location.pathname) {
this.setState({
isDrawerOpen: false,