Skip to content

Commit

Permalink
Fix next button click error in code sandboxes in /learn/state-a-compo…
Browse files Browse the repository at this point in the history
…nents-memory pages
  • Loading branch information
sachanritik1 committed Oct 27, 2024
1 parent eb174dd commit 99d40c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/content/learn/state-a-components-memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export default function Gallery() {
let sculpture = sculptureList[index];
return (
<>
<button onClick={handleClick}>
<button onClick={handleClick} disabled={index === sculptureList.length - 1}>
Next
</button>
<h2>
Expand Down Expand Up @@ -404,7 +404,7 @@ export default function Gallery() {
let sculpture = sculptureList[index];
return (
<>
<button onClick={handleNextClick}>
<button onClick={handleNextClick} disabled={sculptureList.length - 1 === index}>
Next
</button>
<h2>
Expand Down Expand Up @@ -769,7 +769,7 @@ export default function Gallery() {
let sculpture = sculptureList[index];
return (
<section>
<button onClick={handleNextClick}>
<button onClick={handleNextClick} disabled={sculptureList.length - 1 === index}>
Next
</button>
<h2>
Expand Down Expand Up @@ -940,7 +940,7 @@ export default function Gallery() {
let sculpture = sculptureList[index];
return (
<>
<button onClick={handleNextClick}>
<button onClick={handleNextClick} disabled={sculptureList.length - 1 === index}>
Next
</button>
<h2>
Expand Down

0 comments on commit 99d40c0

Please sign in to comment.