cleanup Lens repo with tighter linting

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian Malton committed 2020-07-09 17:00:23 -04:00
1 parent e468105143
commit b1ff34879a
470 files changed
+8447 -7443

No files matched your search

@@ -1 +1 @@
export * from './line-progress'
export * from './line-progress';
@@ -20,10 +20,10 @@ export class LineProgress extends React.PureComponent<Props> {
precise: 2,
};
render() {
render(): JSX.Element {
const { className, min, max, value, precise, children, ...props } = this.props;
let valuePercents = Math.min(100, value / (max - min) * 100);
const valuePercentsRounded = +valuePercents.toFixed(precise)
const valuePercentsRounded = +valuePercents.toFixed(precise);
if (valuePercentsRounded) {
valuePercents = valuePercentsRounded;
}