aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src/components
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-15 23:49:46 +0800
committerFabio Berger <me@fabioberger.com>2018-10-15 23:49:46 +0800
commit96d145f54ff559fe6a46626e73c67e716d6927cd (patch)
treeb28a21d18e6f7c71a493b153dbfcb451cb39c4e3 /packages/react-docs/src/components
parentc9a0c7872de22cf33f1cb82cf504d0df6923d0e8 (diff)
downloaddexon-sol-tools-96d145f54ff559fe6a46626e73c67e716d6927cd.tar
dexon-sol-tools-96d145f54ff559fe6a46626e73c67e716d6927cd.tar.gz
dexon-sol-tools-96d145f54ff559fe6a46626e73c67e716d6927cd.tar.bz2
dexon-sol-tools-96d145f54ff559fe6a46626e73c67e716d6927cd.tar.lz
dexon-sol-tools-96d145f54ff559fe6a46626e73c67e716d6927cd.tar.xz
dexon-sol-tools-96d145f54ff559fe6a46626e73c67e716d6927cd.tar.zst
dexon-sol-tools-96d145f54ff559fe6a46626e73c67e716d6927cd.zip
chore: Remove unused state
Diffstat (limited to 'packages/react-docs/src/components')
-rw-r--r--packages/react-docs/src/components/doc_reference.tsx20
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);