Skip to content

Commit

Permalink
fix: replaced outdated methods to resolve errors (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan-arshad-dev authored Oct 16, 2024
1 parent ab076f2 commit a12323c
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ import org.openedx.core.ui.CheckmarkView
import org.openedx.core.ui.HandleUIMessage
import org.openedx.core.ui.IAPErrorDialog
import org.openedx.core.ui.OfflineModeDialog
import org.openedx.core.ui.OpenEdXBrandButton
import org.openedx.core.ui.OpenEdXOutlineBrandButton
import org.openedx.core.ui.OpenEdXOutlinePrimaryButton
import org.openedx.core.ui.OpenEdXPrimaryButton
import org.openedx.core.ui.RoundTabsBar
Expand Down Expand Up @@ -288,7 +290,7 @@ class CourseContainerFragment : Fragment(R.layout.fragment_course_container) {
CalendarSyncDialogType.LOADING_DIALOG,
CalendarSyncDialogType.PERMISSION_DIALOG,
CalendarSyncDialogType.NONE,
-> {
-> {
}
}

Expand Down Expand Up @@ -468,7 +470,7 @@ fun CourseDashboard(
CourseAccessError.AUDIT_EXPIRED_NOT_UPGRADABLE,
CourseAccessError.NOT_YET_STARTED,
CourseAccessError.UNKNOWN,
-> {
-> {
CourseAccessErrorView(
viewModel = viewModel,
accessError = accessStatus.value,
Expand Down Expand Up @@ -763,7 +765,7 @@ private fun AuditExpiredUpgradableView(
CheckmarkView(stringResource(id = org.openedx.core.R.string.iap_full_access_course))

}
OpenEdXOutlinedButton(
OpenEdXOutlineBrandButton(
text = stringResource(R.string.course_find_new_course_button),
backgroundColor = MaterialTheme.appColors.background,
textColor = MaterialTheme.appColors.primary,
Expand All @@ -777,7 +779,7 @@ private fun AuditExpiredUpgradableView(
is IAPUIState.Loading,
is IAPUIState.PurchaseProduct,
is IAPUIState.Error,
-> {
-> {
CircularProgressIndicator(
modifier = Modifier
.size(42.dp),
Expand All @@ -786,7 +788,7 @@ private fun AuditExpiredUpgradableView(
}

is IAPUIState.ProductData -> {
OpenEdXButton(modifier = Modifier.fillMaxWidth(),
OpenEdXBrandButton(modifier = Modifier.fillMaxWidth(),
text = stringResource(
id = org.openedx.core.R.string.iap_upgrade_price,
viewModel.purchaseFlowData.formattedPrice ?: 0.0,
Expand Down Expand Up @@ -910,7 +912,7 @@ private fun SetupCourseAccessErrorButtons(
when (accessError) {
CourseAccessError.AUDIT_EXPIRED_NOT_UPGRADABLE,
CourseAccessError.NOT_YET_STARTED,
-> {
-> {
OpenEdXPrimaryButton(
text = stringResource(R.string.course_label_back),
onClick = { fragmentManager.popBackStack() },
Expand Down

0 comments on commit a12323c

Please sign in to comment.