-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maurice Dalderup
authored and
Maurice Dalderup
committed
Jun 26, 2018
1 parent
983aa09
commit c76111e
Showing
12 changed files
with
111 additions
and
90 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
|
||
const DataDisplay = props => ( | ||
const DataDisplay = ({ text, data }) => ( | ||
<div style={{ fontSize: "14px", textAlign: "left", margin: "auto" }}> | ||
<pre>{props.asset && JSON.stringify(props.asset, null, 2)}</pre> | ||
<pre>{text}{data && JSON.stringify(data, null, 2)}</pre> | ||
</div> | ||
); | ||
|
||
DataDisplay.propTypes = { | ||
asset: PropTypes.object | ||
data: PropTypes.any | ||
}; | ||
|
||
DataDisplay.defaultProps = { | ||
asset: null | ||
data: null | ||
}; | ||
|
||
export default DataDisplay; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
import HomePage from "./Home/HomePage"; | ||
|
||
import DashboardPage from "./Dashboard/DashboardPage"; | ||
|
||
import LoginPage from "./Auth/LoginPage"; | ||
|
||
import PageNotFound from "./Errors/PageNotFound"; | ||
|
||
export { HomePage, DashboardPage, LoginPage, PageNotFound }; | ||
export { HomePage, PageNotFound }; |
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