Skip to content

Commit

Permalink
fix: make dark theme working and minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ottodevs committed Jan 30, 2020
1 parent 667058a commit 7c1fac8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 5 additions & 2 deletions app/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ const App = ({ api, widgets, isSyncing }) => {
}

App.propTypes = {
api: PropTypes.func.isRequired,
api: PropTypes.shape({
updateContent: PropTypes.func,
}),
// appStateReady: PropTypes.bool,
isSyncing: PropTypes.bool,
widgets: PropTypes.arrayOf(types.widget),
Expand All @@ -98,13 +100,14 @@ App.propTypes = {
App.defaultProps = {
// TODO: implement appStateReady
// appStateReady: false,
api: {},
isSyncing: true,
widgets: [],
}

// Passing api-react by props allows to type-check with propTypes
const AboutApp = () => {
const { api = {}, appState, guiStyle = {} } = useAragonApi()
const { api, appState, guiStyle = {} } = useAragonApi()
const { appearance } = guiStyle

return (
Expand Down
1 change: 0 additions & 1 deletion app/utils/api-react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default ({ initialState = {}, functions = (() => {}) }) => {
if (!inIframe()) {
useAragonApi = require('./useStubbedApi')({ functions, initialState })
useNetwork = require('./useStubbedNetwork')

}
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"node": "10.x"
},
"dependencies": {
"@aragon/api-react": "2.0.0-beta.8",
"@aragon/api": "2.0.0-beta.8",
"@aragon/api-react": "2.0.0-beta.9",
"@aragon/api": "2.0.0-beta.9",
"@aragon/os": "4.2.0",
"@aragon/ui": "^1.2.1",
"@githubprimer/octicons-react": "^8.5.0",
Expand Down

0 comments on commit 7c1fac8

Please sign in to comment.