-
Notifications
You must be signed in to change notification settings - Fork 179
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(app): Show connect alert banner on successful connection #1700
Conversation
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.
📲
@@ -58,6 +59,7 @@ function RobotSettingsPage (props: Props) { | |||
return ( | |||
<Page> | |||
<TitleBar title={robot.name} /> | |||
<ConnectBanner {...robot} key={Number(robot.isConnected)}/> |
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.
What's the purpose of Number
here?
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.
Flow was expected number or string not a bool
const TITLE = `${name} successfully connected` | ||
return ( | ||
<div> | ||
{isVisible && ( |
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 also do an early null
return if !isVisible
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.
i like that. will change in a bit
Codecov Report
@@ Coverage Diff @@
## edge #1700 +/- ##
==========================================
- Coverage 34.68% 34.57% -0.12%
==========================================
Files 342 343 +1
Lines 5576 5594 +18
==========================================
Hits 1934 1934
- Misses 3642 3660 +18
Continue to review full report at Codecov.
|
overview
This PR closes #1314. Will open a separate issue for connectRequest error banner.
changelog
review requests