-
Notifications
You must be signed in to change notification settings - Fork 136
Publisher status refresh now shows confirmation #475
Conversation
3a17b7e
to
59e4deb
Compare
59e4deb
to
9ffa074
Compare
e05d536
to
46903e8
Compare
46903e8
to
72d9997
Compare
@@ -312,6 +312,11 @@ storiesOf('Feature Components/Rewards/Concepts/Desktop', module) | |||
|
|||
const onRefreshPublisher = () => { | |||
store.set({ refreshingPublisher: !store.state.refreshingPublisher }) | |||
setTimeout(() => { |
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.
nit: can we just pass a single object with three props to store.set
?
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.
Done.
to { | ||
opacity: 0; | ||
} | ||
` |
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.
Nice transition work 👍
@@ -97,6 +105,7 @@ export default class Profile extends React.PureComponent<Props, {}> { | |||
) : null} | |||
</StyledTitleWrap> | |||
{verified && type === 'big' ? ( | |||
!refreshingPublisher && !publisherRefreshed ? |
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.
Could we split all code bellow (that is inside StyledContent
) into separate function? This way function will tell us more what is going on, because current code is quire hard to read with nested if statements
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.
Done.
cc1a24e
to
cf7ee70
Compare
2c93266
to
470992d
Compare
470992d
to
04f97d2
Compare
Changes
Partial for brave/brave-browser#4351
Publisher panel refresh now has a confirmation signal to let the user know that the check is complete.
Test plan
in brave-core
Link / storybook path to visual changes
Integration
Does this contain changes to src/components or src/
Does this contain changes to src/features for brave-core?