refactor(itinerary): consolidate duplicate optional unwrapping in CustomItemRow

This commit is contained in:
Trey t
2026-01-17 21:34:18 -06:00
parent 3a4b9f23e8
commit b008af1c71
2 changed files with 1349 additions and 4 deletions

View File

@@ -26,14 +26,11 @@ struct CustomItemRow: View {
.font(.title3)
.foregroundStyle(Theme.textMuted(colorScheme))
// Icon
// Icon and Title
if let info = customInfo {
Text(info.icon)
.font(.title3)
}
// Title
if let info = customInfo {
Text(info.title)
.font(.body)
.foregroundStyle(Theme.textPrimary(colorScheme))

File diff suppressed because it is too large Load Diff