aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-17 22:55:05 +0800
committerFabio Berger <me@fabioberger.com>2018-10-17 22:55:05 +0800
commit4d275cc5916c2802bd1d0b64766409daff5006db (patch)
treec7ce898f865d2570cc358e0e1740a571aded72f1 /packages/react-shared
parente18f66e5b7a099101c8d9273391744eacd705f59 (diff)
downloaddexon-0x-contracts-4d275cc5916c2802bd1d0b64766409daff5006db.tar
dexon-0x-contracts-4d275cc5916c2802bd1d0b64766409daff5006db.tar.gz
dexon-0x-contracts-4d275cc5916c2802bd1d0b64766409daff5006db.tar.bz2
dexon-0x-contracts-4d275cc5916c2802bd1d0b64766409daff5006db.tar.lz
dexon-0x-contracts-4d275cc5916c2802bd1d0b64766409daff5006db.tar.xz
dexon-0x-contracts-4d275cc5916c2802bd1d0b64766409daff5006db.tar.zst
dexon-0x-contracts-4d275cc5916c2802bd1d0b64766409daff5006db.zip
nit: don't init scrolledToId
Diffstat (limited to 'packages/react-shared')
-rw-r--r--packages/react-shared/src/components/nested_sidebar_menu.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/react-shared/src/components/nested_sidebar_menu.tsx b/packages/react-shared/src/components/nested_sidebar_menu.tsx
index fc5ab95fa..f734dc654 100644
--- a/packages/react-shared/src/components/nested_sidebar_menu.tsx
+++ b/packages/react-shared/src/components/nested_sidebar_menu.tsx
@@ -16,7 +16,7 @@ export interface NestedSidebarMenuProps {
}
export interface NestedSidebarMenuState {
- scrolledToId: string;
+ scrolledToId?: string;
}
const styles: Styles = {
@@ -43,9 +43,7 @@ export class NestedSidebarMenu extends React.Component<NestedSidebarMenuProps, N
private _urlIntervalCheckId: number | undefined = undefined;
constructor(props: NestedSidebarMenuProps) {
super(props);
- this.state = {
- scrolledToId: '',
- };
+ this.state = {};
}
public componentDidMount(): void {
this._urlIntervalCheckId = window.setInterval(() => {