-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rendered printer stats component on button click
- Loading branch information
Showing
8 changed files
with
108 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React, { Component } from 'react' | ||
|
||
class LargeButton extends Component { | ||
render() { | ||
const { buttonText } = this.props; | ||
const { clickEvent } = this.props; | ||
return ( | ||
<div onClick = {clickEvent} className="Home-button">{buttonText}</div> | ||
) | ||
} | ||
} | ||
|
||
export default LargeButton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React, { Component } from 'react' | ||
import Logo from "./logo.png"; | ||
|
||
class LogoHeader extends Component { | ||
render() { | ||
const { headerClass } = this.props; | ||
return ( | ||
<div className = {headerClass}> | ||
<img className="Header-logo" src={Logo} alt="Turtle logo"/> | ||
<h1 className="Header-text">Turtle</h1> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default LogoHeader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { Component } from 'react' | ||
|
||
class PortStatus extends Component { | ||
render() { | ||
const { portStatus } = this.props; | ||
return ( | ||
<h2 className="Home-printer-status">PRINTER STATUS: {portStatus}</h2> | ||
) | ||
} | ||
} | ||
|
||
export default PortStatus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React, { Component } from 'react' | ||
|
||
class PrinterStats extends Component { | ||
render() { | ||
return ( | ||
<div className="Printer-stats-container"> | ||
|
||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default PrinterStats |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.