Skip to content

Commit 4a49376

Browse files
committed
frontend: use the wireframe's furniture photo in the review fixture
Replaces the per-item random picsum seeds with five copies of the leather sofa shot from the review frames (added to public/ in the shared-components PR). The strip is one item's photo set, so five unrelated stock images misrepresented what the screen shows. samplePhotos() no longer needs a seed argument.
1 parent d7a3b78 commit 4a49376

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

  • frontend/app/donation-request/components

frontend/app/donation-request/components/fixture.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import type { DonationRequest } from "./types";
22

3-
/** Five stable placeholder photo URLs for an item, keyed by a seed. */
4-
function samplePhotos(seed: string) {
3+
/**
4+
* Five placeholder photos for an item — the same furniture shot repeated, as in
5+
* the review frames, so the strip reads as one item's photo set.
6+
*/
7+
function samplePhotos() {
58
return Array.from({ length: 5 }, (_, i) => ({
6-
url: `https://picsum.photos/seed/${seed}-${i}/480/480`,
9+
url: "/sample-furniture.jpg",
710
position: i,
811
}));
912
}
@@ -34,7 +37,7 @@ export const DONATION_REQUEST_FIXTURE: DonationRequest = {
3437
status: "PICKUP_PENDING",
3538
rejection_reason: null,
3639
rejection_details: null,
37-
photos: samplePhotos("dining"),
40+
photos: samplePhotos(),
3841
},
3942
{
4043
id: "item-sofa",
@@ -43,7 +46,7 @@ export const DONATION_REQUEST_FIXTURE: DonationRequest = {
4346
status: "PICKUP_PENDING",
4447
rejection_reason: null,
4548
rejection_details: null,
46-
photos: samplePhotos("sofa"),
49+
photos: samplePhotos(),
4750
},
4851
],
4952
pickup: null,

0 commit comments

Comments
 (0)