scaffolding hermes flow and audit logging
This commit is contained in:
@@ -9,8 +9,6 @@ struct RevealView: View {
|
||||
let continueTitle: String
|
||||
let onContinue: () -> Void
|
||||
|
||||
@EnvironmentObject private var analytics: HermesAnalyticsClient
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: HermesTheme.sectionSpacing) {
|
||||
HermesSectionHeader(title: title, subtitle: subtitle)
|
||||
@@ -24,16 +22,11 @@ struct RevealView: View {
|
||||
}
|
||||
|
||||
Button {
|
||||
analytics.track("reveal_completed", attributes: ["screen_name": "reveal", "selection": selectionValue])
|
||||
onContinue()
|
||||
} label: {
|
||||
Text(continueTitle)
|
||||
}
|
||||
.buttonStyle(HermesPrimaryButtonStyle())
|
||||
}
|
||||
.onAppear {
|
||||
analytics.track("screen_viewed", attributes: ["screen_name": "reveal"])
|
||||
analytics.track("reveal_started", attributes: ["screen_name": "reveal", "selection": selectionValue])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user