-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Task] VX-272: Use table to list the nodes. #3
Conversation
src/routes/Cluster/Node/index.tsx
Outdated
numerator.toString() + | ||
' (' + | ||
((numerator / denominator) * 100).toFixed(2).toString() + | ||
'%)' |
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.
`${numerator.toString()} (${((numerator / denominator) * 100).toFixed(2).toString()}%)`
src/routes/Cluster/Node/index.tsx
Outdated
), | ||
age: moment( | ||
new Date(this.props.nodes[node].detail.createAt * 1000) | ||
).fromNow() |
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.
moment(this.props.nodes[node].detail.createAt * 1000).fromNow()
src/routes/Cluster/Node/index.tsx
Outdated
((numerator / denominator) * 100).toFixed(2).toString() + | ||
'%)' | ||
); | ||
}; |
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.
`${formatBytes(numerator)} (${((numerator / denominator) * 100).toFixed(2).toString()}%)`
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.
please put
const TabPane = Tabs.TabPane;
under interface declaration
src/routes/Cluster/Node/index.tsx
Outdated
<Row> | ||
<Col span={12}> | ||
{this.renderListItemContent( | ||
<FormattedMessage id={`node.detail.createdAt`} />, |
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.
if you don't have concat variable, just use plan single quote rather than literal template.
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.
and also could remove bracket.
f645ace
to
df3a67b
Compare
df3a67b
to
3818699
Compare
No description provided.