Minor fixes TimePerActivity component to use readOnly input fields

This commit is contained in:
Davenludd 2024-04-02 17:35:02 +02:00
parent eb741ba20d
commit ff37236cf6

View file

@ -95,9 +95,7 @@ export default function TimePerRole(): JSX.Element {
type="string" type="string"
className="border-2 border-black rounded-md text-center w-1/2" className="border-2 border-black rounded-md text-center w-1/2"
value={developmentTime} value={developmentTime}
onKeyDown={(event) => { readOnly
event.preventDefault();
}}
/> />
</td> </td>
</tr> </tr>
@ -108,9 +106,7 @@ export default function TimePerRole(): JSX.Element {
type="string" type="string"
className="border-2 border-black rounded-md text-center w-1/2" className="border-2 border-black rounded-md text-center w-1/2"
value={meetingTime} value={meetingTime}
onKeyDown={(event) => { readOnly
event.preventDefault();
}}
/> />
</td> </td>
</tr> </tr>
@ -121,9 +117,7 @@ export default function TimePerRole(): JSX.Element {
type="string" type="string"
className="border-2 border-black rounded-md text-center w-1/2" className="border-2 border-black rounded-md text-center w-1/2"
value={adminTime} value={adminTime}
onKeyDown={(event) => { readOnly
event.preventDefault();
}}
/> />
</td> </td>
</tr> </tr>
@ -134,9 +128,7 @@ export default function TimePerRole(): JSX.Element {
type="string" type="string"
className="border-2 border-black rounded-md text-center w-1/2" className="border-2 border-black rounded-md text-center w-1/2"
value={ownWorkTime} value={ownWorkTime}
onKeyDown={(event) => { readOnly
event.preventDefault();
}}
/> />
</td> </td>
</tr> </tr>
@ -147,9 +139,7 @@ export default function TimePerRole(): JSX.Element {
type="string" type="string"
className="border-2 border-black rounded-md text-center w-1/2" className="border-2 border-black rounded-md text-center w-1/2"
value={studyTime} value={studyTime}
onKeyDown={(event) => { readOnly
event.preventDefault();
}}
/> />
</td> </td>
</tr> </tr>
@ -160,9 +150,7 @@ export default function TimePerRole(): JSX.Element {
type="string" type="string"
className="border-2 border-black rounded-md text-center w-1/2" className="border-2 border-black rounded-md text-center w-1/2"
value={testingTime} value={testingTime}
onKeyDown={(event) => { readOnly
event.preventDefault();
}}
/> />
</td> </td>
</tr> </tr>