simplified create item. Restructured profile. Simplified availability
This commit is contained in:
@@ -164,7 +164,6 @@ const EditItem: React.FC = () => {
|
||||
await itemAPI.updateItem(id!, {
|
||||
...formData,
|
||||
images: imageUrls,
|
||||
isPortable: formData.pickUpAvailable || formData.shippingAvailable,
|
||||
});
|
||||
|
||||
setSuccess(true);
|
||||
@@ -257,7 +256,7 @@ const EditItem: React.FC = () => {
|
||||
disabled={imagePreviews.length >= 5}
|
||||
/>
|
||||
<div className="form-text">
|
||||
Upload up to 5 images of your item
|
||||
Have pictures of everything that's included
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -368,10 +367,9 @@ const EditItem: React.FC = () => {
|
||||
onChange={handleChange}
|
||||
/>
|
||||
<label className="form-check-label" htmlFor="pickUpAvailable">
|
||||
Pick-Up
|
||||
Pick-Up/Drop-off
|
||||
<div className="small text-muted">
|
||||
They pick-up the item from your location and they return
|
||||
the item to your location
|
||||
You and the renter coordinate pick-up and drop-off
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
@@ -539,7 +537,7 @@ const EditItem: React.FC = () => {
|
||||
/>
|
||||
</div>
|
||||
<div className="form-text">
|
||||
The cost to replace the item if damaged or lost
|
||||
The cost to replace the item if lost
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -608,7 +606,7 @@ const EditItem: React.FC = () => {
|
||||
</label>
|
||||
</div>
|
||||
<label htmlFor="rules" className="form-label">
|
||||
Additional Rules or Guidelines
|
||||
Additional Rules
|
||||
</label>
|
||||
<textarea
|
||||
className="form-control"
|
||||
@@ -617,7 +615,7 @@ const EditItem: React.FC = () => {
|
||||
rows={3}
|
||||
value={formData.rules || ""}
|
||||
onChange={handleChange}
|
||||
placeholder="Any specific rules or guidelines for renting this item"
|
||||
placeholder="Any specific rules for renting this item"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user