Skip to content

Commit

Permalink
Change to icon
Browse files Browse the repository at this point in the history
  • Loading branch information
backwardstruck committed Oct 1, 2024
1 parent 73f380a commit d24e53f
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Button
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import com.woocommerce.android.R
import com.woocommerce.android.model.Order
import java.math.BigDecimal

Expand All @@ -31,8 +35,11 @@ fun CouponFormSection(
Text(text = "Coupon: ${coupon.code}")
Text(text = "Discount: ${coupon.discount}")
}
Button(onClick = { onRemoveCoupon(coupon.code) }) {
Text(text = "Remove")
IconButton(onClick = { onRemoveCoupon(coupon.code) }) {
Icon(
painter = painterResource(id = R.drawable.ic_gridicons_trash_24dp),
contentDescription = "Remove Coupon"
)
}
}
}
Expand Down

0 comments on commit d24e53f

Please sign in to comment.