Skip to content

Commit

Permalink
Add poc button states
Browse files Browse the repository at this point in the history
  • Loading branch information
zwarm committed Feb 19, 2024
1 parent 4a71e28 commit 7ac0197
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ sealed class PrepublishingHomeItemUiState(
true
)

// todo: annmarie @ajesh - notice that Schedule, Update, and Save button states set PublishPost = false - I wonder what this
// means?
data class ScheduleButtonUiState(override val onButtonClicked: (PublishPost) -> Unit) : ButtonUiState(
UiStringRes(R.string.prepublishing_nudges_home_schedule_button),
false
Expand All @@ -63,6 +65,21 @@ sealed class PrepublishingHomeItemUiState(
UiStringRes(R.string.prepublishing_nudges_home_save_button),
false
)

data class InProgressButtonUiState(override val onButtonClicked: ((PublishPost) -> Unit)? = null) : ButtonUiState(
UiStringRes(R.string.prepublishing_nudges_home_in_progress_button),
false
)

data class ErrorButtonUiState(override val onButtonClicked: ((PublishPost) -> Unit)? = null) : ButtonUiState(
UiStringRes(R.string.prepublishing_nudges_home_error_button),
false
)

data class DoneButtonUiState(override val onButtonClicked: ((PublishPost) -> Unit)? = null) : ButtonUiState(
UiStringRes(R.string.prepublishing_nudges_home_done_button),
false
)
}

sealed class SocialUiState(
Expand Down

0 comments on commit 7ac0197

Please sign in to comment.