Skip to content

Commit

Permalink
[#42] Update var naming
Browse files Browse the repository at this point in the history
  • Loading branch information
blyscuit committed Feb 27, 2023
1 parent 0eb2ae4 commit 90c3aff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct SubmissionSuccessView: View {
.accessibility(.submissionSuccess(.animation))
Text(String.localizeId.submission_success_title())
.font(.boldTitle)
.foregroundColor(.moko.white())
.foregroundColor(.moko.primary())
.multilineTextAlignment(.center)
.padding()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ struct SurveyDetailView: View {
// TODO: Replace with real answer object
@State var currentAnswers = [String]()
@State var isShowingQuitPrompt = false
@State var isShowingSuccess = false
@State var isShowingSuccessConfirmation = false

var body: some View {
ZStack {
surveyView
.if(!dataSource.isShowingTitleNavigationBar) { view in
view.navigationBarItems(trailing: closeButton)
}
if isShowingSuccess {
if isShowingSuccessConfirmation {
SubmissionSuccessView(
coordinator: coordinator,
isShowing: $isShowingSuccess
isShowing: $isShowingSuccessConfirmation
)
.ignoresSafeArea()
}
Expand Down Expand Up @@ -163,7 +163,7 @@ struct SurveyDetailView: View {
DispatchQueue.main.asyncAfter(deadline: .now()) {
withAnimation(.easeInViewTransition) {
dataSource.isLoading = false
isShowingSuccess = true
isShowingSuccessConfirmation = true
}
}
} label: {
Expand All @@ -183,7 +183,7 @@ struct SurveyDetailView: View {
.resizable()
.frame(width: 28.0, height: 28.0)
.accessibility(.surveyQuestion(.closeButton))
.opacity(isShowingSuccess ? 0.0 : 1.0)
.opacity(isShowingSuccessConfirmation ? 0.0 : 1.0)
}
.disabled(isAnimating)
}
Expand Down
2 changes: 1 addition & 1 deletion shared/src/commonMain/resources/MR/base/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<resources>
<!-- format: #RRGGBB[AA] or 0xRRGGBB[AA] or RRGGBB[AA] where [AA] - optional -->
<color name="backgroundColor">#15151A</color>
<color name="white">#FFFFFF</color>
<color name="primary">#FFFFFF</color>
</resources>

0 comments on commit 90c3aff

Please sign in to comment.