Skip to content

Commit c9e1bcb

Browse files
committed
changes
1 parent 6c0b3cf commit c9e1bcb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

public/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const ShoppingCartPage = () => {
9191
<div className="text-blue-600 font-bold text-lg">${item.price} x {item.quantity}</div>
9292
<div className="flex items-center gap-2 mt-2">
9393
<button className="px-2 py-1 bg-gray-200 rounded" onClick={() => decrementFromCart(item.id)}>-</button>
94-
<span className="px-2">{item.quantity}</span>
94+
<span className="px-2" id="item-quantity">{item.quantity}</span>
9595
<button className="px-2 py-1 bg-gray-200 rounded" onClick={() => addToCart(item, 1)}>+</button>
9696
</div>
9797
</div>

src/pages/Scenarios.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const Scenarios: React.FC = () => {
124124
title: 'Link copied',
125125
description: 'The scenario URL is ready to share.',
126126
className: toastStyles,
127-
duration: 800
127+
duration: 3000
128128
});
129129
});
130130
}
@@ -160,6 +160,7 @@ const Scenarios: React.FC = () => {
160160
</div>
161161
<button
162162
onClick={() => setToggleState(!toggleState)}
163+
id="feature-toggle-btn"
163164
className={`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${
164165
toggleState ? 'bg-blue-600' : 'bg-gray-200'
165166
}`}
@@ -202,6 +203,7 @@ const Scenarios: React.FC = () => {
202203
{[25, 50, 75, 100].map((value) => (
203204
<button
204205
key={value}
206+
id={`progress-btn-${value}`}
205207
onClick={() => setProgressValue(value)}
206208
className="flex-1 py-2 px-2 text-sm rounded-lg font-medium transition-all bg-gray-100 text-gray-700 hover:bg-gray-200"
207209
>

0 commit comments

Comments
 (0)