Skip to content

Commit

Permalink
editing
Browse files Browse the repository at this point in the history
  • Loading branch information
lksnjw committed Sep 30, 2024
1 parent 62f8847 commit c181fb9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions frontend/src/Pages/delivery/DLeditdriver.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ const DLViewDriver = () => {
if (name === 'fullName') {
if (!/^[A-Za-z\s]*$/.test(value)) {
errorMessage = 'Name should only contain alphabets and spaces.';
return;
}
}

Expand Down Expand Up @@ -279,8 +280,8 @@ const DLViewDriver = () => {
0,
10
)}
onChange={handleInputChange}
className="p-2 border border-gray-300 rounded-md"
readOnly // Make field non-editable
className="p-2 border border-gray-300 rounded-md bg-gray-100 cursor-not-allowed"
/>
</div>

Expand All @@ -293,8 +294,8 @@ const DLViewDriver = () => {
type="text"
name="idCardNumber"
value={driverDetails.idCardNumber}
onChange={handleInputChange}
className="p-2 border border-gray-300 rounded-md"
readOnly // Make field non-editable
className="p-2 border border-gray-300 rounded-md bg-gray-100 cursor-not-allowed"
/>
</div>

Expand All @@ -307,8 +308,8 @@ const DLViewDriver = () => {
type="text"
name="licenseCardNumber"
value={driverDetails.licenseCardNumber}
onChange={handleInputChange}
className="p-2 border border-gray-300 rounded-md"
readOnly // Make field non-editable
className="p-2 border border-gray-300 rounded-md bg-gray-100 cursor-not-allowed"
/>
</div>

Expand Down

0 comments on commit c181fb9

Please sign in to comment.