-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: dynamic campaign promotions #202
Conversation
Branch preview⏳ Deploying a preview site... |
color: '#2470FF', | ||
'&:hover': { | ||
backgroundColor: ({ palette }) => `rgba(36, 112, 255, ${palette.action.hoverOpacity})`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This blue color still belongs to one specific campaign or is it the same for every campaign?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its the same on every campaign. There is no configurable color atm. So we could change it but only to a constant other color.
cc @TanyaEfremova
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -45,7 +50,7 @@ export const CampaignPromo = () => { | |||
<LinearProgress | |||
className={css.progressBar} | |||
variant="determinate" | |||
value={progress} | |||
value={progress * 100} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did something change about the progress value so that we have to multiply it now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was wrong before but noone realized it. It has to be between 0 and 100 and not 0 and 1
What this PR changes
CampaignPromo
CampaignPromo
with its valuesOther changes