Skip to content

Commit

Permalink
post-review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rkzel committed Aug 23, 2019
1 parent ddf5831 commit c8e71c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/dot-voting/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@ class App extends React.Component {
export default () => {
const { api, appState, connectedAccount, displayMenuButton } = useAragonApi()
return <App api={api} {...appState} connectedAccount={connectedAccount} displayMenuButton={displayMenuButton} />
}
}
6 changes: 2 additions & 4 deletions apps/dot-voting/app/Decisions.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ class Decisions extends React.Component {
handleCreateVoteClose = () => {
this.setState({ createVoteVisible: false })
}
handleVoteTransitionEnd = opened => {
this.setState(opened ? { voteSidebarOpened: true } : { currentVoteId: -1 })
}

getAddressLabel = (entries, option) => {
const index = entries.findIndex(entry => entry.addr === option.label)
Expand All @@ -90,6 +87,7 @@ class Decisions extends React.Component {
votes,
entries,
voteTime,
onSelectVote,
} = this.props
const {
settingsLoaded,
Expand Down Expand Up @@ -125,7 +123,7 @@ class Decisions extends React.Component {
<StyledDecisions>
<ScrollWrapper>
{displayVotes ? (
<Votes votes={preparedVotes} onSelectVote={this.props.onSelectVote} app={app}/>
<Votes votes={preparedVotes} onSelectVote={onSelectVote} app={app}/>
) : (
<div
style={{
Expand Down

0 comments on commit c8e71c2

Please sign in to comment.