Skip to content

Commit

Permalink
Remove <AragonApp /> (#570)
Browse files Browse the repository at this point in the history
This component is going to be deprecated in Aragon UI.
  • Loading branch information
bpierre authored and sohkai committed Nov 15, 2018
1 parent abc49e7 commit f6df8d0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
8 changes: 5 additions & 3 deletions apps/finance/app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import BN from 'bn.js'
import {
AppBar,
AppView,
AragonApp,
BaseStyles,
Button,
EmptyStateCard,
PublicUrl,
SidePanel,
observe,
} from '@aragon/ui'
Expand Down Expand Up @@ -96,7 +97,8 @@ class App extends React.Component {
const { newTransferOpened } = this.state

return (
<AragonApp publicUrl="./aragon-ui/">
<PublicUrl.Provider url="./aragon-ui/">
<BaseStyles />
<AppView
appBar={
<AppBar
Expand Down Expand Up @@ -147,7 +149,7 @@ class App extends React.Component {
userAccount={userAccount}
/>
</SidePanel>
</AragonApp>
</PublicUrl.Provider>
)
}
}
Expand Down
7 changes: 4 additions & 3 deletions apps/survey/app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import BigNumber from 'bignumber.js'
import { isBefore } from 'date-fns'
import { AppView, AragonApp, observe } from '@aragon/ui'
import { AppView, BaseStyles, PublicUrl, observe } from '@aragon/ui'
import { Transition, animated } from 'react-spring'
import tokenBalanceOfAtAbi from './abi/token-balanceOfAt.json'
import tokenDecimalsAbi from './abi/token-decimals.json'
Expand Down Expand Up @@ -166,7 +166,8 @@ class App extends React.Component {
const openedSurvey = this.getSurvey(openedSurveyId)
const votingPanelSurvey = this.getSurvey(votingPanelSurveyId)
return (
<AragonApp publicUrl="/aragon-ui/">
<PublicUrl.Provider url="./aragon-ui/">
<BaseStyles />
<AppView
appBar={
<AppBar
Expand Down Expand Up @@ -209,7 +210,7 @@ class App extends React.Component {
onClose={this.handlePanelClose}
app={app}
/>
</AragonApp>
</PublicUrl.Provider>
)
}
}
Expand Down
8 changes: 5 additions & 3 deletions apps/token-manager/app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import BN from 'bn.js'
import {
AppBar,
AppView,
AragonApp,
Badge,
BaseStyles,
Button,
PublicUrl,
SidePanel,
font,
observe,
Expand Down Expand Up @@ -112,7 +113,8 @@ class App extends React.Component {
} = this.props
const { assignTokensConfig, sidepanelOpened } = this.state
return (
<AragonApp publicUrl="./aragon-ui/">
<PublicUrl.Provider url="./aragon-ui/">
<BaseStyles />
<AppView
appBar={
<AppBar
Expand Down Expand Up @@ -174,7 +176,7 @@ class App extends React.Component {
/>
)}
</SidePanel>
</AragonApp>
</PublicUrl.Provider>
)
}
}
Expand Down
8 changes: 5 additions & 3 deletions apps/voting/app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import PropTypes from 'prop-types'
import {
AppBar,
AppView,
AragonApp,
Button,
BaseStyles,
PublicUrl,
SidePanel,
observe,
} from '@aragon/ui'
Expand Down Expand Up @@ -217,7 +218,8 @@ class App extends React.Component {
const hasCurrentVote = appStateReady && Boolean(currentVote)

return (
<AragonApp publicUrl="./aragon-ui/">
<PublicUrl.Provider url="./aragon-ui/">
<BaseStyles />
<AppView
appBar={
<AppBar
Expand Down Expand Up @@ -269,7 +271,7 @@ class App extends React.Component {
onCreateVote={this.handleCreateVote}
/>
</SidePanel>
</AragonApp>
</PublicUrl.Provider>
)
}
}
Expand Down

0 comments on commit f6df8d0

Please sign in to comment.