Skip to content

Commit

Permalink
Add missing Woo Theme to WooShippingCustomsFormScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomazFB committed Jan 30, 2025
1 parent b87ecf2 commit c5bbfa5
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.material.Surface
import androidx.compose.ui.platform.ComposeView
import androidx.compose.ui.platform.ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed
import androidx.fragment.app.viewModels
Expand All @@ -12,6 +13,7 @@ import com.woocommerce.android.R
import com.woocommerce.android.extensions.handleDialogResult
import com.woocommerce.android.extensions.navigateSafely
import com.woocommerce.android.ui.base.BaseFragment
import com.woocommerce.android.ui.compose.theme.WooThemeWithBackground
import com.woocommerce.android.ui.orders.wooshippinglabels.customs.WooShippingCustomsFormViewModel.ContentType
import com.woocommerce.android.ui.orders.wooshippinglabels.customs.WooShippingCustomsFormViewModel.RestrictionType
import com.woocommerce.android.ui.orders.wooshippinglabels.customs.WooShippingCustomsFormViewModel.ShowContentTypeDialog
Expand All @@ -26,7 +28,11 @@ class WooShippingCustomsFormFragment : BaseFragment() {
return ComposeView(requireContext()).apply {
setViewCompositionStrategy(DisposeOnViewTreeLifecycleDestroyed)
setContent {
WooShippingCustomsFormScreen(viewModel = viewModel)
WooThemeWithBackground {
Surface {
WooShippingCustomsFormScreen(viewModel = viewModel)
}
}
}
}
}
Expand Down

0 comments on commit c5bbfa5

Please sign in to comment.