Merge pull request #977 from SimonMarquis/fix/compiler-warnings

Fix compiler warning: Remove single lambda parameter declaration
pull/986/head
Don Turner 1 year ago committed by GitHub
commit aee921e4ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,7 +52,7 @@ class FilterChipScreenshotTests() {
@Test
fun filterChip_multipleThemes() {
composeTestRule.captureMultiTheme("FilterChip") { description ->
composeTestRule.captureMultiTheme("FilterChip") {
Surface {
NiaFilterChip(selected = false, onSelectedChange = {}) {
Text("Unselected chip")
@ -63,7 +63,7 @@ class FilterChipScreenshotTests() {
@Test
fun filterChip_multipleThemes_selected() {
composeTestRule.captureMultiTheme("FilterChip", "FilterChipSelected") { description ->
composeTestRule.captureMultiTheme("FilterChip", "FilterChipSelected") {
Surface {
NiaFilterChip(selected = true, onSelectedChange = {}) {
Text("Selected Chip")

@ -44,14 +44,14 @@ class IconButtonScreenshotTests {
@Test
fun iconButton_multipleThemes() {
composeTestRule.captureMultiTheme("IconButton") { description ->
composeTestRule.captureMultiTheme("IconButton") {
NiaIconToggleExample(false)
}
}
@Test
fun iconButton_unchecked_multipleThemes() {
composeTestRule.captureMultiTheme("IconButton", "IconButtonUnchecked") { description ->
composeTestRule.captureMultiTheme("IconButton", "IconButtonUnchecked") {
Surface {
NiaIconToggleExample(true)
}

Loading…
Cancel
Save