Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
- Replace vote button with a link to vote tab. - Add raised style to …
Browse files Browse the repository at this point in the history
…Send link.
  • Loading branch information
reyraa committed Sep 18, 2017
1 parent 82213e8 commit 79bed75
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
5 changes: 5 additions & 0 deletions src/components/dialog/dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import RegisterDelegate from '../registerDelegate';
import SignMessage from '../signMessage';
import VerifyMessage from '../verifyMessage';
import SecondPassphrase from '../secondPassphrase';
import VoteDialog from '../voteDialog';

export default {
send: {
Expand All @@ -25,4 +26,8 @@ export default {
title: 'Register Second Passphrase',
component: SecondPassphrase,
},
vote: {
title: 'Vote for delegates',
component: VoteDialog,
},
};
4 changes: 4 additions & 0 deletions src/components/voting/voting.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@
.rotated {
transform: rotate(45deg);
}

.voteButton {
color: #000 !important;
}
13 changes: 4 additions & 9 deletions src/components/voting/votingHeader.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import grid from 'flexboxgrid/dist/flexboxgrid.css';
import { Button } from 'react-toolbox/lib/button';
import buttonStyle from 'react-toolbox/lib/button/theme.css';
import { IconMenu, MenuItem } from 'react-toolbox/lib/menu';
import Input from 'react-toolbox/lib/input';
import styles from './voting.css';
import disableStyle from './disableMenu.css';
import VoteDialog from '../voteDialog';
import RelativeLink from '../relativeLink';

class VotingHeader extends React.Component {
constructor() {
Expand Down Expand Up @@ -89,13 +89,8 @@ class VotingHeader extends React.Component {
publicKey: votes[username].publicKey,
})} />)}
</IconMenu>
<Button icon='done' flat
className='vote-button'
onClick={() => this.props.setActiveDialog({
title: 'Vote for delegates',
childComponent: VoteDialog,
})}
label={this.confirmVoteText()} />
<RelativeLink className={`${buttonStyle.button} ${buttonStyle.primary} ${buttonStyle.flat} ${styles.voteButton} vote-button`}
to='vote'>{this.confirmVoteText()}</RelativeLink>
</div>
</header>
);
Expand Down

0 comments on commit 79bed75

Please sign in to comment.