|
@@ -1,5 +1,6 @@
|
|
import React, { FormEvent } from 'react';
|
|
import React, { FormEvent } from 'react';
|
|
import { IconButton } from '../button/IconButton';
|
|
import { IconButton } from '../button/IconButton';
|
|
|
|
+import { TextInput } from '../textInput/TextInput';
|
|
import styles from './caloriesInput.css';
|
|
import styles from './caloriesInput.css';
|
|
import { iconTypes } from '../icon/iconTypes';
|
|
import { iconTypes } from '../icon/iconTypes';
|
|
|
|
|
|
@@ -47,13 +48,13 @@ function CaloriesInput ({addCalories, saveCalories, item}: CaloriesInputProps) {
|
|
<form onSubmit={onSubmit} className={styles.caloriesInput}>
|
|
<form onSubmit={onSubmit} className={styles.caloriesInput}>
|
|
<div className={styles.inputWrapper}>
|
|
<div className={styles.inputWrapper}>
|
|
<div className={styles.formRow}>
|
|
<div className={styles.formRow}>
|
|
- <input key={itemTitle} id="caloriesTitle" placeholder="Nahrungsmittel" name="caloriesTitle" type="text"
|
|
|
|
|
|
+ <TextInput key={itemTitle} placeholder="Nahrungsmittel" name="caloriesTitle" type="text"
|
|
defaultValue={itemTitle}
|
|
defaultValue={itemTitle}
|
|
required />
|
|
required />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div className={styles.formRow}>
|
|
<div className={styles.formRow}>
|
|
- <input key={itemCount} id="caloriesCount" placeholder="Kalorien" name="caloriesCount" type="number"
|
|
|
|
|
|
+ <TextInput key={itemCount} placeholder="Kalorien" name="caloriesCount" type="number"
|
|
defaultValue={itemCount}
|
|
defaultValue={itemCount}
|
|
required />
|
|
required />
|
|
</div>
|
|
</div>
|