update empty view screens
This commit is contained in:
@@ -71,15 +71,15 @@ class ShowBasedOnVoteLogics {
|
|||||||
static func getVotingTitle(onboardingData: OnboardingData) -> String {
|
static func getVotingTitle(onboardingData: OnboardingData) -> String {
|
||||||
switch ShowBasedOnVoteLogics.returnCurrentVoteStatus(onboardingData: onboardingData) {
|
switch ShowBasedOnVoteLogics.returnCurrentVoteStatus(onboardingData: onboardingData) {
|
||||||
case (false, .Today):
|
case (false, .Today):
|
||||||
return "how as yesterday"
|
return String(localized: "add_mood_header_view_title_yesterday")
|
||||||
case (true, .Today):
|
case (true, .Today):
|
||||||
return "how is today"
|
return String(localized: "add_mood_header_view_title_today")
|
||||||
|
|
||||||
case (false, .Previous):
|
case (false, .Previous):
|
||||||
let date = Calendar.current.date(byAdding: .day, value: -2, to: Date())!
|
let date = Calendar.current.date(byAdding: .day, value: -2, to: Date())!
|
||||||
return "how was \(Random.weekdayName(fromDate: date))"
|
return String(format: String(localized: "add_mood_header_view_title"), Random.weekdayName(fromDate: date))
|
||||||
case (true, .Previous):
|
case (true, .Previous):
|
||||||
return "how was yesterday"
|
return String(localized: "add_mood_header_view_title_yesterday")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,15 +18,6 @@ struct EmptyHomeView: View {
|
|||||||
theme.currentTheme.secondaryBGColor
|
theme.currentTheme.secondaryBGColor
|
||||||
|
|
||||||
VStack {
|
VStack {
|
||||||
Text(String(localized: "content_view_empty_title"))
|
|
||||||
.font(.title)
|
|
||||||
.foregroundColor(textColor)
|
|
||||||
.padding()
|
|
||||||
|
|
||||||
Text(String(localized: "content_view_empty_title"))
|
|
||||||
.font(.body)
|
|
||||||
.foregroundColor(textColor)
|
|
||||||
.padding()
|
|
||||||
AddMoodHeaderView(addItemHeaderClosure: { (mood, date) in
|
AddMoodHeaderView(addItemHeaderClosure: { (mood, date) in
|
||||||
withAnimation {
|
withAnimation {
|
||||||
viewModel.add(mood: mood, forDate: date, entryType: .header)
|
viewModel.add(mood: mood, forDate: date, entryType: .header)
|
||||||
|
|||||||
@@ -48,8 +48,11 @@ struct MonthView: View {
|
|||||||
if viewModel.hasNoData {
|
if viewModel.hasNoData {
|
||||||
VStack {
|
VStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
EmptyHomeView(viewModel: viewModel)
|
Text(String(localized: "month_view_no_data"))
|
||||||
|
.font(.title)
|
||||||
.padding()
|
.padding()
|
||||||
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
|
.foregroundColor(textColor)
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
"add_mood_header_view_title_today" = "How is today?";
|
"add_mood_header_view_title_today" = "How is today?";
|
||||||
"add_mood_header_view_title_yesterday" = "How was yesterday?";
|
"add_mood_header_view_title_yesterday" = "How was yesterday?";
|
||||||
|
"add_mood_header_view_title" = "How was %@?";
|
||||||
|
|
||||||
"content_view_tab_main" = "Main";
|
"content_view_tab_main" = "Main";
|
||||||
"content_view_tab_month" = "Months";
|
"content_view_tab_month" = "Months";
|
||||||
@@ -39,8 +40,7 @@
|
|||||||
"content_view_fill_in_missing_entry_cancel" = "Cancel";
|
"content_view_fill_in_missing_entry_cancel" = "Cancel";
|
||||||
"content_view_delete_entry" = "Delete this entry";
|
"content_view_delete_entry" = "Delete this entry";
|
||||||
"content_view_header_title" = "Past %d days";
|
"content_view_header_title" = "Past %d days";
|
||||||
"content_view_empty_title" = "You aint done shit";
|
"content_view_empty_title" = "There are no entries to display.";
|
||||||
"content_view_empty_body" = "Fucking vote or something?!?!? How the fuck was yesterday?";
|
|
||||||
|
|
||||||
"filter_view_total" = "Total";
|
"filter_view_total" = "Total";
|
||||||
"filter_view_show_filters" = "Show Filters";
|
"filter_view_show_filters" = "Show Filters";
|
||||||
@@ -95,3 +95,5 @@
|
|||||||
"create_widget_view_mouth_color" = "Mouth";
|
"create_widget_view_mouth_color" = "Mouth";
|
||||||
"create_widget_save" = "Save";
|
"create_widget_save" = "Save";
|
||||||
"create_widget_use" = "Use";
|
"create_widget_use" = "Use";
|
||||||
|
|
||||||
|
"month_view_no_data" = "There are no entries to display.";
|
||||||
|
|||||||
Reference in New Issue
Block a user