Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change bottom sheet error code to string #689

Merged
merged 3 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class HomeActivity : AppCompatActivity() {
subMessage = "SubMessage",
imageUrl = "https://portal-cicloentrada.blu.com.br/assets/icons/coin_trail-cc541831a7fbf4d215f3910fb241b14701f5ab0f79d574ad3a6e12379b7e871e.png",
icon = R.drawable.icon_easter_eggs,
code = 2000,
code = 2000.toString(),
actionPositive = OceanBottomSheetModel.Button(
text = "Aceitar",
onClick = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private fun OceanBottomSheetPreview() {
message = "Message",
subMessage = "SubMessage",
imageUrl = "https://portal-cicloentrada.blu.com.br/assets/icons/coin_trail-cc541831a7fbf4d215f3910fb241b14701f5ab0f79d574ad3a6e12379b7e871e.png",
code = 2000,
code = 2000.toString(),
actionPositive = OceanBottomSheetModel.Button(
text = "Aceitar",
onClick = {}
Expand Down Expand Up @@ -160,7 +160,7 @@ private fun OceanBottomSheetPreview() {
println("Botão clicado")
},
),
code = 2000,
code = 2000.toString(),
onDismiss = {
it.value = false
}
Expand All @@ -180,7 +180,7 @@ data class OceanBottomSheetModel(
val title: String? = null,
val message: String? = null,
val subMessage: String? = null,
val code: Int? = null,
val code: String? = null,
fernandozblu marked this conversation as resolved.
Show resolved Hide resolved
fernandozblu marked this conversation as resolved.
Show resolved Hide resolved
@DrawableRes val icon: Int? = null,
val imageUrl: String? = null,
val maxWidth: Int? = null,
Expand Down