Skip to content

Commit ca7412c

Browse files
msasikanthmmmateos
authored andcommitted
Set button color style in delete bottom sheet dialog
1 parent 16ecb1a commit ca7412c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ui-components/src/main/java/org/dhis2/ui/dialogs/bottomsheet/DeleteBottomSheetDialog.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import org.hisp.dhis.mobile.ui.designsystem.component.BottomSheetShell
2020
import org.hisp.dhis.mobile.ui.designsystem.component.Button
2121
import org.hisp.dhis.mobile.ui.designsystem.component.ButtonBlock
2222
import org.hisp.dhis.mobile.ui.designsystem.component.ButtonStyle
23+
import org.hisp.dhis.mobile.ui.designsystem.component.ColorStyle
2324
import org.hisp.dhis.mobile.ui.designsystem.theme.SurfaceColor
2425

2526
class
@@ -80,6 +81,7 @@ DeleteBottomSheetDialog(
8081
)
8182
},
8283
text = mainButtonText,
84+
colorStyle = ColorStyle.ERROR,
8385
onClick = {
8486
onMainButtonClick
8587
},
@@ -92,8 +94,12 @@ DeleteBottomSheetDialog(
9294
onDismiss = {
9395
dismiss()
9496
},
97+
content = {
98+
// no-op
99+
},
100+
showSectionDivider = false
95101
)
96102
}
97103
}
98104
}
99-
}
105+
}

0 commit comments

Comments
 (0)