diff --git a/src/App.css b/src/App.css index 9cf71fd..6232e37 100644 --- a/src/App.css +++ b/src/App.css @@ -10,6 +10,10 @@ margin-top: 16px; } +.result { + margin-top: 16px; +} + .table>thead>tr>th, .table-centered>tbody>tr>td{text-align:center} diff --git a/src/components/Gearbox.js b/src/components/Gearbox.js deleted file mode 100644 index 027ee9f..0000000 --- a/src/components/Gearbox.js +++ /dev/null @@ -1,15 +0,0 @@ -import React, { Component } from 'react'; - -class Gearbox extends Component { - render() { - return ( -
Diamètre | +Largeur du pneu | +Hauteur du flanc | +
---|---|---|
+ |
+
+ |
+
+ |
+
+ | 1ère | +2ère | +3ère | +4ère | +5ère | +6ère | +Pont | +Marche arrière | +
---|---|---|---|---|---|---|---|---|
+ Actuelle + | +
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ Nouvelle + | +
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ | + 1 + + ère + + | ++ 2 + + ème + + | ++ 3 + + ème + + | ++ 4 + + ème + + | ++ 5 + + ème + + | ++ 6 + + ème + + | ++ Marche arrière + | +|
---|---|---|---|---|---|---|---|---|
+ { + tpm === 'speed' + ? this.state.speed + : tpm === 'rpm' + ? this.state.rpm + : tpm + } + { + tpm === 'speed' + ? ( + 'km/h' + ) + : ( + 'tr/min' + ) + } + + | ++ + Actuelle + + | + {Object.keys(this.state.results[tpm]).map((values, indexValues) => ( ++ {this.state.results[tpm][values].old} + | + ))} +||||||
+ + Nouvelle + + | + {Object.keys(this.state.results[tpm]).map((values, indexValues) => ( ++ {this.state.results[tpm][values].new} + | + ))} +
- Quand votre compteur indique {this.state.speed} km/h vous roulez en réalité à {this.number_format(this.state.vitesseNew,2,',',' ')} km/h + Quand votre compteur indique {this.state.speed} km/h vous roulez en réalité à {formatNumber(this.state.vitesseNew,2,',',' ')} km/h