MCPcopy Create free account
hub / github.com/dfinityexplorer/dfinityexplorer-dashboard / constructor

Function constructor

web/src/App.js:99–117  ·  view source on GitHub ↗

* Create an App object. * @constructor

(props)

Source from the content-addressed store, hash-verified

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).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected