-
Notifications
You must be signed in to change notification settings - Fork 15
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
GUI-122 benchmark and propertyList component #93
GUI-122 benchmark and propertyList component #93
Conversation
@@ -0,0 +1,27 @@ | |||
@import 'guide.less'; | |||
|
|||
@property-list-label-fontColor: @color-light-font; |
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.
property-list-label-fontColor
посоны чо за ад с неймингами. не то не се.
nextProps.keys.indexOf(key) !== -1, | ||
) | ||
.map(key => { | ||
config.push({ |
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.
const config: IPropertyListItem[] = Object.keys(Benchmark.defaultKeys)
.filter(
.filter(
.map(
@@ -0,0 +1,27 @@ | |||
@import 'guide.less'; | |||
|
|||
@property-list-label-fontColor: @color-light-font; |
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.
опять
</div> | ||
<Benchmark | ||
data={record.benchmarkMap} | ||
keys={['cpuCount', 'ethHashrate', 'ramSize']} |
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 is bad practice /
whats wrong here? i will not explain this error one more time.
@@ -135,6 +135,7 @@ export interface IAccountBrief { | |||
} | |||
|
|||
export interface IBenchmarkMap { | |||
[index: string]: string | number; |
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.
previous version looks better.
what difference with IDictionary 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.
this type definition is nonsensical in this form
@@ -0,0 +1,83 @@ | |||
import * as React from 'react'; | |||
import { IBenchmarkMap, IDictionary } from 'app/api/types'; |
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.
you should define this types here if it is possible.
there are no any reason to place IDictionary typedef there.
this definition is not related to api anyway
gpuRamSize: 'GPU Ram size', | ||
zcashHashrate: 'ZCahs hashrate', | ||
redshiftGpu: 'Redshift', | ||
} as IDictionary; |
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.
there are no needs to cast type.
also this type should be
public static readonly defaultKeys: { [P in key of IBenchmarkMap]: string } = { ...
No description provided.