MCPcopy
hub / github.com/vivek9patel/vivek9patel.github.io / constructor

Function constructor

components/util components/status_card.js:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22export class StatusCard extends Component {
23 constructor() {
24 super();
25 this.wrapperRef = React.createRef();
26 this.state = {
27 sound_level: 75, // better of setting default values from localStorage
28 brightness_level: 100 // setting default value to 100 so that by default its always full.
29 };
30 }
31 handleClickOutside = () => {
32 this.props.toggleVisible();
33 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected