-
Notifications
You must be signed in to change notification settings - Fork 20
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
Notification when an update is available #238
base: v0.22.0-old
Are you sure you want to change the base?
Notification when an update is available #238
Conversation
|
Are you sure the design is correct? The UI version seems to overlap the upgrade box when there is an update available. |
|
src/components/sidenav/Sidenav.jsx
Outdated
@@ -120,7 +120,7 @@ const Sidenav = (props) => { | |||
</Link> | |||
</div> | |||
{isUpdateAvailable ? <React.Fragment> |
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.
no need for ternary operator
{isUpdateAvailable && ...updateDiv}
< div >
< popover >...ui version</ popover >
...sc version
< /div >
@@ -120,7 +120,7 @@ const Sidenav = (props) => { | |||
</Link> | |||
</div> | |||
{isUpdateAvailable ? <React.Fragment> | |||
<div style={{ backgroundColor: "#D2E0FF", padding: 16}}> | |||
<div style={{ backgroundColor: "#D2E0FF", padding: 16 }}> | |||
Upgrade to v{scLatestVersion} <Button type="primary" ghost style={{ marginLeft: 9 }}>Update</Button> |
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 happens onClick?
Notification in the sidenav when there is a spacecloud update available.