File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ /* /index.html 200
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments