|
@@ -47,14 +47,14 @@ 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}>
|
|
- <label htmlFor="caloriesTitle">Nahrungsmittel:</label>
|
|
|
|
- <input key={itemTitle} id="caloriesTitle" name="caloriesTitle" type="text" defaultValue={itemTitle}
|
|
|
|
|
|
+ <input key={itemTitle} id="caloriesTitle" placeholder="Nahrungsmittel" name="caloriesTitle" type="text"
|
|
|
|
+ defaultValue={itemTitle}
|
|
required />
|
|
required />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div className={styles.formRow}>
|
|
<div className={styles.formRow}>
|
|
- <label htmlFor="caloriesCount">Kalorien:</label>
|
|
|
|
- <input key={itemCount} id="caloriesCount" name="caloriesCount" type="number" defaultValue={itemCount}
|
|
|
|
|
|
+ <input key={itemCount} id="caloriesCount" placeholder="Kalorien" name="caloriesCount" type="number"
|
|
|
|
+ defaultValue={itemCount}
|
|
required />
|
|
required />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|