Skip to content

Commit

Permalink
Merge pull request #4140 from ilonagog/WV-594-TEAM-REVIEW
Browse files Browse the repository at this point in the history
WV-594 and WV-518 [TEAM REVIEW]
  • Loading branch information
DaleMcGrew authored Oct 24, 2024
2 parents c8362e4 + 8fed685 commit 2b2269a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ import styled from 'styled-components';
import PropTypes from 'prop-types';
import JoinChallengeButton from './JoinChallengeButton'

const JoinChallengeAndLearnMoreButtons = ({ classes }) => {
const JoinChallengeAndLearnMoreButtons = ({ challengeWeVoteId, classes }) => {
return (
<JoinChallengeButtonWrapper>
<Button
classes={{ root: classes.joinChallengeButton }}
color="primary"
id={`challengeLearnMore-${challengeWeVoteId}`}
variant="contained"
>
Join Challenge
</Button>
<Button
classes={{ root: classes.learnMoreButton }}
color="secondary"
variant="contained"
id={`challengeLearnMore-${challengeWeVoteId}`}
variant="outlined"
>
Learn More
</Button>
Expand All @@ -30,23 +32,23 @@ const styles = () => ({
joinChallengeButton: {
borderRadius: 45,
maxWidth: 300,
background: 'var(--Primary-600, #0858A1)',
border: '1px solid var(--Primary-400, #4187C6)',
color: 'var(--WhiteUI, #FFFFFF)',
// background: 'var(--Primary-600, #0858A1)',
// border: '1px solid var(--Primary-400, #4187C6)',
// color: 'var(--WhiteUI, #FFFFFF)',
marginRight: '10px',
marginTop: '10px',
},
learnMoreButton:{
borderRadius: 45,
maxWidth: 300,
background: 'white',
border: '1px solid var(--Primary-400, #4187C6)',
color: 'var(--Neutral-900, #2A2A2C)',
// background: 'white',
// border: '1px solid var(--Primary-400, #4187C6)',
// color: 'var(--Neutral-900, #2A2A2C)',
marginTop: '10px',
'&:hover': {
backgroundColor: 'white',
color: 'var(--Neutral-900, #2A2A2C)',
},
// '&:hover': {
// backgroundColor: 'white',
// color: 'var(--Neutral-900, #2A2A2C)',
// },
},
});

Expand All @@ -57,6 +59,7 @@ const JoinChallengeButtonWrapper = styled('div')`
`;

JoinChallengeAndLearnMoreButtons.propTypes = {
challengeWeVoteId: PropTypes.string,
classes: PropTypes.object.isRequired,
};

Expand Down
2 changes: 1 addition & 1 deletion src/js/common/components/Challenge/YourRank.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const YourRank = ({ classes, challengeWeVoteId }) => {
classes={{ root: classes.buttonDesktop }}
style={{
backgroundColor: clicked ? '#AC5204' : 'white',
color: clicked ? '#FFFFFF' : '#AC5204' }}
color: clicked ? '#FFFFFF' : '#AC5204'}}
>
#
{rankOfVoter}
Expand Down

0 comments on commit 2b2269a

Please sign in to comment.