Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-megh-l committed Jan 3, 2024
1 parent ed31992 commit 368d5bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ fun IntroShowcaseScope.BackButton(introShowcaseState: IntroShowcaseState) {
Button(
onClick = {
// Used to restart the intro showcase
introShowcaseState.resetState()
introShowcaseState.reset()
},
) {
Text(text = "Restart Intro")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class IntroShowcaseState internal constructor(
/**
* Resets the state to its initial values, effectively restarting the showcase.
*/
fun resetState() {
fun reset() {
currentTargetIndex = 0
}
}

0 comments on commit 368d5bc

Please sign in to comment.