Skip to content

Commit

Permalink
Fix AssistChip
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Agarwal committed May 23, 2024
1 parent 6ceb415 commit 5ad33b3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import androidx.compose.foundation.layout.offset
import androidx.compose.material.ripple.LocalRippleTheme
import androidx.compose.material3.AssistChip
import androidx.compose.material3.AssistChipDefaults
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
Expand Down Expand Up @@ -37,7 +36,6 @@ import org.hisp.dhis.mobile.ui.designsystem.theme.TextColor
* @param onClick: Will be called when the user taps the chip.
* @param badge: the text to be displayed within the badge.
*/
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun AssistChip(
modifier: Modifier = Modifier,
Expand Down Expand Up @@ -75,6 +73,7 @@ fun AssistChip(
},
border = AssistChipDefaults.assistChipBorder(
borderColor = Outline.Dark,
enabled = enabled
),
leadingIcon = {
icon?.invoke()
Expand Down

0 comments on commit 5ad33b3

Please sign in to comment.