Skip to content

Commit 3a27c59

Browse files
Merge pull request #47 from richard-hgs/main
Enumeration.kt SSButtonState.FAILIURE Changed to SSButtonState.FAILURE Thanks for pointing it out @richard-hgs
2 parents 24f8324 + 95f4107 commit 3a27c59

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

app/src/main/java/com/simform/ssjetpackcomposeprogressbutton/MainActivity.kt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,19 @@ fun SSLoadingButtonExample() {
124124
}
125125
Button(
126126
onClick = {
127-
roundedProgressState = SSButtonState.FAILIURE
128-
wheelState = SSButtonState.FAILIURE
129-
zoomInOutState = SSButtonState.FAILIURE
130-
clockState = SSButtonState.FAILIURE
131-
roundedProgressState2 = SSButtonState.FAILIURE
132-
spiralState = SSButtonState.FAILIURE
133-
ssTextButtonState = SSButtonState.FAILIURE
134-
textWithIconState = SSButtonState.FAILIURE
135-
textWithRightButton = SSButtonState.FAILIURE
136-
blinkingIcon = SSButtonState.FAILIURE
137-
customRotationButtonState = SSButtonState.FAILIURE
138-
customEffectButtonState = SSButtonState.FAILIURE
139-
customZoomButtonState = SSButtonState.FAILIURE
127+
roundedProgressState = SSButtonState.FAILURE
128+
wheelState = SSButtonState.FAILURE
129+
zoomInOutState = SSButtonState.FAILURE
130+
clockState = SSButtonState.FAILURE
131+
roundedProgressState2 = SSButtonState.FAILURE
132+
spiralState = SSButtonState.FAILURE
133+
ssTextButtonState = SSButtonState.FAILURE
134+
textWithIconState = SSButtonState.FAILURE
135+
textWithRightButton = SSButtonState.FAILURE
136+
blinkingIcon = SSButtonState.FAILURE
137+
customRotationButtonState = SSButtonState.FAILURE
138+
customEffectButtonState = SSButtonState.FAILURE
139+
customZoomButtonState = SSButtonState.FAILURE
140140
},
141141
modifier = Modifier
142142
.padding(TWELVE.dp)

ssjetpackcomposeprogressbutton/src/main/java/com/simform/ssjetpackcomposeprogressbuttonlibrary/Enumeration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.simform.ssjetpackcomposeprogressbuttonlibrary
22

33
enum class SSButtonState {
4-
IDLE, LOADING, SUCCESS, FAILIURE
4+
IDLE, LOADING, SUCCESS, FAILURE
55
}
66

77
enum class SSButtonType {

ssjetpackcomposeprogressbutton/src/main/java/com/simform/ssjetpackcomposeprogressbuttonlibrary/SSJetPackComposeProgressButton.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ fun SSJetPackComposeProgressButton(
188188
cornerRadiusValue = cornerRadius
189189
})
190190
}
191-
SSButtonState.FAILIURE -> {
191+
SSButtonState.FAILURE -> {
192192
LaunchedEffect(key1 = LAUNCH_EFFECT_KEY, block = {
193193
if (height > width) {
194194
buttonHeight = width

0 commit comments

Comments
 (0)