Fix input fields to be read-only in OtherUsersTR and initialize state variables in TimePerRole
This commit is contained in:
parent
c0d36f8df1
commit
be963b2281
1 changed files with 7 additions and 0 deletions
|
@ -29,6 +29,7 @@ export default function OtherUsersTR(): JSX.Element {
|
|||
projectName ?? "",
|
||||
fetchedWeek?.toString() ?? "0",
|
||||
token,
|
||||
username ?? "",
|
||||
);
|
||||
|
||||
if (response.success) {
|
||||
|
@ -86,6 +87,7 @@ export default function OtherUsersTR(): JSX.Element {
|
|||
min="0"
|
||||
className="border-2 border-black rounded-md text-center w-1/2"
|
||||
value={developmentTime === 0 ? "" : developmentTime}
|
||||
readOnly
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -97,6 +99,7 @@ export default function OtherUsersTR(): JSX.Element {
|
|||
min="0"
|
||||
className="border-2 border-black rounded-md text-center w-1/2"
|
||||
value={meetingTime === 0 ? "" : meetingTime}
|
||||
readOnly
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -108,6 +111,7 @@ export default function OtherUsersTR(): JSX.Element {
|
|||
min="0"
|
||||
className="border-2 border-black rounded-md text-center w-1/2"
|
||||
value={adminTime === 0 ? "" : adminTime}
|
||||
readOnly
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -119,6 +123,7 @@ export default function OtherUsersTR(): JSX.Element {
|
|||
min="0"
|
||||
className="border-2 border-black rounded-md text-center w-1/2"
|
||||
value={ownWorkTime === 0 ? "" : ownWorkTime}
|
||||
readOnly
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -130,6 +135,7 @@ export default function OtherUsersTR(): JSX.Element {
|
|||
min="0"
|
||||
className="border-2 border-black rounded-md text-center w-1/2"
|
||||
value={studyTime === 0 ? "" : studyTime}
|
||||
readOnly
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -141,6 +147,7 @@ export default function OtherUsersTR(): JSX.Element {
|
|||
min="0"
|
||||
className="border-2 border-black rounded-md text-center w-1/2"
|
||||
value={testingTime === 0 ? "" : testingTime}
|
||||
readOnly
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in a new issue