Skip to content

Commit b5b4563

Browse files
committed
refactor: Rename PinNumberPad to NumberPadSimple
1 parent 5cb3750 commit b5b4563

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

app/src/main/java/to/bitkit/ui/components/AuthCheckView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private fun PinPad(
197197
pin = pin,
198198
modifier = Modifier.padding(vertical = 16.dp),
199199
)
200-
PinNumberPad(
200+
NumberPadSimple(
201201
modifier = Modifier.height(310.dp),
202202
onPress = { key ->
203203
if (key == KEY_DELETE) {

app/src/main/java/to/bitkit/ui/components/PinNumberPad.kt renamed to app/src/main/java/to/bitkit/ui/components/NumberPadSimple.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private fun NumberButton(
5555
}
5656

5757
@Composable
58-
fun PinNumberPad(
58+
fun NumberPadSimple(
5959
onPress: (String) -> Unit,
6060
modifier: Modifier = Modifier,
6161
) {
@@ -123,7 +123,7 @@ fun PinNumberPad(
123123
@Composable
124124
private fun Preview() {
125125
AppThemeSurface {
126-
PinNumberPad(
126+
NumberPadSimple(
127127
onPress = {},
128128
modifier = Modifier.height(310.dp)
129129
)

app/src/main/java/to/bitkit/ui/screens/wallets/send/PinCheckScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import to.bitkit.ui.components.BodyM
2828
import to.bitkit.ui.components.BodyS
2929
import to.bitkit.ui.components.KEY_DELETE
3030
import to.bitkit.ui.components.PinDots
31-
import to.bitkit.ui.components.PinNumberPad
31+
import to.bitkit.ui.components.NumberPadSimple
3232
import to.bitkit.ui.scaffold.SheetTopBar
3333
import to.bitkit.ui.shared.util.clickableAlpha
3434
import to.bitkit.ui.shared.util.gradientBackground
@@ -134,7 +134,7 @@ private fun PinCheckContent(
134134

135135
Spacer(modifier = Modifier.weight(1f))
136136

137-
PinNumberPad(
137+
NumberPadSimple(
138138
onPress = onKeyPress,
139139
modifier = Modifier
140140
.height(350.dp)

app/src/main/java/to/bitkit/ui/settings/pin/ChangePinConfirmScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import to.bitkit.ui.components.BodyM
2727
import to.bitkit.ui.components.BodyS
2828
import to.bitkit.ui.components.KEY_DELETE
2929
import to.bitkit.ui.components.PinDots
30-
import to.bitkit.ui.components.PinNumberPad
30+
import to.bitkit.ui.components.NumberPadSimple
3131
import to.bitkit.ui.navigateToHome
3232
import to.bitkit.ui.navigateToChangePinResult
3333
import to.bitkit.ui.scaffold.AppTopBar
@@ -117,7 +117,7 @@ private fun ChangePinConfirmContent(
117117

118118
Spacer(modifier = Modifier.weight(1f))
119119

120-
PinNumberPad(
120+
NumberPadSimple(
121121
modifier = Modifier.height(350.dp),
122122
onPress = onKeyPress,
123123
)

app/src/main/java/to/bitkit/ui/settings/pin/ChangePinNewScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import to.bitkit.env.Env
2121
import to.bitkit.ui.components.BodyM
2222
import to.bitkit.ui.components.KEY_DELETE
2323
import to.bitkit.ui.components.PinDots
24-
import to.bitkit.ui.components.PinNumberPad
24+
import to.bitkit.ui.components.NumberPadSimple
2525
import to.bitkit.ui.navigateToChangePinConfirm
2626
import to.bitkit.ui.navigateToHome
2727
import to.bitkit.ui.scaffold.AppTopBar
@@ -90,7 +90,7 @@ private fun ChangePinNewContent(
9090

9191
Spacer(modifier = Modifier.weight(1f))
9292

93-
PinNumberPad(
93+
NumberPadSimple(
9494
modifier = Modifier.height(350.dp),
9595
onPress = onKeyPress,
9696
)

app/src/main/java/to/bitkit/ui/settings/pin/ChangePinScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import to.bitkit.ui.components.BodyM
2626
import to.bitkit.ui.components.BodyS
2727
import to.bitkit.ui.components.KEY_DELETE
2828
import to.bitkit.ui.components.PinDots
29-
import to.bitkit.ui.components.PinNumberPad
29+
import to.bitkit.ui.components.NumberPadSimple
3030
import to.bitkit.ui.navigateToChangePinNew
3131
import to.bitkit.ui.navigateToHome
3232
import to.bitkit.ui.scaffold.AppTopBar
@@ -129,7 +129,7 @@ private fun ChangePinContent(
129129

130130
Spacer(modifier = Modifier.weight(1f))
131131

132-
PinNumberPad(
132+
NumberPadSimple(
133133
modifier = Modifier.height(350.dp),
134134
onPress = onKeyPress,
135135
)

app/src/main/java/to/bitkit/ui/settings/pin/ChoosePinScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import to.bitkit.env.Env
2121
import to.bitkit.ui.components.BodyM
2222
import to.bitkit.ui.components.KEY_DELETE
2323
import to.bitkit.ui.components.PinDots
24-
import to.bitkit.ui.components.PinNumberPad
24+
import to.bitkit.ui.components.NumberPadSimple
2525
import to.bitkit.ui.scaffold.SheetTopBar
2626
import to.bitkit.ui.shared.util.gradientBackground
2727
import to.bitkit.ui.theme.AppThemeSurface
@@ -58,7 +58,7 @@ fun ChoosePinScreen(
5858

5959
Spacer(modifier = Modifier.height(32.dp))
6060

61-
PinNumberPad(
61+
NumberPadSimple(
6262
onPress = { key ->
6363
if (key == KEY_DELETE) {
6464
if (pin.isNotEmpty()) {

app/src/main/java/to/bitkit/ui/settings/pin/ConfirmPinScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import to.bitkit.ui.components.BodyM
2727
import to.bitkit.ui.components.BodyS
2828
import to.bitkit.ui.components.KEY_DELETE
2929
import to.bitkit.ui.components.PinDots
30-
import to.bitkit.ui.components.PinNumberPad
30+
import to.bitkit.ui.components.NumberPadSimple
3131
import to.bitkit.ui.scaffold.SheetTopBar
3232
import to.bitkit.ui.shared.util.gradientBackground
3333
import to.bitkit.ui.theme.AppThemeSurface
@@ -119,7 +119,7 @@ private fun ConfirmPinContent(
119119

120120
Spacer(modifier = Modifier.height(32.dp))
121121

122-
PinNumberPad(
122+
NumberPadSimple(
123123
onPress = onKeyPress,
124124
modifier = Modifier
125125
.height(350.dp)

app/src/main/java/to/bitkit/ui/settings/transactionSpeed/CustomFeeSettingsScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import to.bitkit.ui.components.BodyM
2828
import to.bitkit.ui.components.Caption13Up
2929
import to.bitkit.ui.components.KEY_DELETE
3030
import to.bitkit.ui.components.LargeRow
31-
import to.bitkit.ui.components.PinNumberPad
31+
import to.bitkit.ui.components.NumberPadSimple
3232
import to.bitkit.ui.components.PrimaryButton
3333
import to.bitkit.ui.currencyViewModel
3434
import to.bitkit.ui.scaffold.AppTopBar
@@ -130,7 +130,7 @@ private fun CustomFeeSettingsContent(
130130

131131
Spacer(modifier = Modifier.weight(1f))
132132

133-
PinNumberPad(
133+
NumberPadSimple(
134134
onPress = onKeyPress,
135135
modifier = Modifier.height(350.dp)
136136
)

0 commit comments

Comments
 (0)