* Create an App object. * @constructor
(props)
| 97 | * @constructor |
| 98 | */ |
| 99 | constructor(props) { |
| 100 | super(props); |
| 101 | this.state = { |
| 102 | routerRef: null, |
| 103 | appBarHeight: 0, |
| 104 | isDesktopDrawerEnabled: true, |
| 105 | isMobileDrawerOpen: false, |
| 106 | isPageDataCenters: false, |
| 107 | isThemeDark: true |
| 108 | }; |
| 109 | |
| 110 | // Bind to make 'this' work in callbacks. |
| 111 | this.setRouterRef = this.setRouterRef.bind(this); |
| 112 | this.handleAppBarResize = this.handleAppBarResize.bind(this); |
| 113 | this.handleDesktopDrawerMenuClick = this.handleDesktopDrawerMenuClick.bind(this); |
| 114 | this.handleMobileDrawerMenuClick = this.handleMobileDrawerMenuClick.bind(this); |
| 115 | this.handleSetIsPageDataCenters = this.handleSetIsPageDataCenters.bind(this); |
| 116 | this.handleThemeChange = this.handleThemeChange.bind(this); |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Invoked by React immediately after a component is mounted (inserted into the tree). |
nothing calls this directly
no outgoing calls
no test coverage detected