aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/Input.js
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-09-14 10:34:04 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-14 10:34:04 +0200
commit979ec02c9a1019152be08705986337e470eabb57 (patch)
tree6021179ad8649112717a499780f475275af487f2 /src/components/ui/Input.js
parentrefactor: defensive programming to avoid javascript error for unread badges (diff)
downloadferdium-app-979ec02c9a1019152be08705986337e470eabb57.tar.gz
ferdium-app-979ec02c9a1019152be08705986337e470eabb57.tar.zst
ferdium-app-979ec02c9a1019152be08705986337e470eabb57.zip
chore: codebase improvements (#1930)
Diffstat (limited to 'src/components/ui/Input.js')
-rw-r--r--src/components/ui/Input.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/ui/Input.js b/src/components/ui/Input.js
index 335367f03..43fab10ee 100644
--- a/src/components/ui/Input.js
+++ b/src/components/ui/Input.js
@@ -42,7 +42,7 @@ class Input extends Component {
42 passwordScore: 0, 42 passwordScore: 0,
43 }; 43 };
44 44
45 inputElement = null; 45 inputElement;
46 46
47 componentDidMount() { 47 componentDidMount() {
48 if (this.props.focus) { 48 if (this.props.focus) {
@@ -133,10 +133,10 @@ class Input extends Component {
133 {/* <progress value={this.state.passwordScore} max="100" /> */} 133 {/* <progress value={this.state.passwordScore} max="100" /> */}
134 <meter 134 <meter
135 value={passwordScore < 5 ? 5 : passwordScore} 135 value={passwordScore < 5 ? 5 : passwordScore}
136 low="30" 136 low={30}
137 high="75" 137 high={75}
138 optimum="100" 138 optimum={100}
139 max="100" 139 max={100}
140 /> 140 />
141 </div> 141 </div>
142 )} 142 )}