diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-15 23:49:46 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-15 23:49:46 +0800 |
commit | 96d145f54ff559fe6a46626e73c67e716d6927cd (patch) | |
tree | b28a21d18e6f7c71a493b153dbfcb451cb39c4e3 | |
parent | c9a0c7872de22cf33f1cb82cf504d0df6923d0e8 (diff) | |
download | dexon-sol-tools-96d145f54ff559fe6a46626e73c67e716d6927cd.tar.gz dexon-sol-tools-96d145f54ff559fe6a46626e73c67e716d6927cd.tar.zst dexon-sol-tools-96d145f54ff559fe6a46626e73c67e716d6927cd.zip |
chore: Remove unused state
-rw-r--r-- | packages/react-docs/src/components/doc_reference.tsx | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/packages/react-docs/src/components/doc_reference.tsx b/packages/react-docs/src/components/doc_reference.tsx index c70b99b19..da05b04f8 100644 --- a/packages/react-docs/src/components/doc_reference.tsx +++ b/packages/react-docs/src/components/doc_reference.tsx @@ -50,17 +50,9 @@ export interface DocReferenceProps { docAgnosticFormat?: DocAgnosticFormat; } -export interface DocReferenceState { - isHoveringSidebar: boolean; -} +export interface DocReferenceState {} export class DocReference extends React.Component<DocReferenceProps, DocReferenceState> { - constructor(props: DocReferenceProps) { - super(props); - this.state = { - isHoveringSidebar: false, - }; - } public componentDidMount(): void { window.addEventListener('hashchange', this._onHashChanged.bind(this), false); } @@ -329,16 +321,6 @@ export class DocReference extends React.Component<DocReferenceProps, DocReferenc /> ); } - private _onSidebarHover(_event: React.FormEvent<HTMLInputElement>): void { - this.setState({ - isHoveringSidebar: true, - }); - } - private _onSidebarHoverOff(): void { - this.setState({ - isHoveringSidebar: false, - }); - } private _onHashChanged(_event: any): void { const hash = window.location.hash.slice(1); sharedUtils.scrollToHash(hash, sharedConstants.SCROLL_CONTAINER_ID); |