scaffolding hermes flow and audit logging
This commit is contained in:
@@ -4,6 +4,8 @@ struct OnboardingView: View {
|
||||
@EnvironmentObject private var localization: LocalizationStore
|
||||
@EnvironmentObject private var analytics: HermesAnalyticsClient
|
||||
|
||||
let onStartSession: () -> Void
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: HermesTheme.sectionSpacing) {
|
||||
HermesSectionHeader(
|
||||
@@ -27,6 +29,7 @@ struct OnboardingView: View {
|
||||
Button {
|
||||
analytics.track("consent_accepted", attributes: ["screen_name": "onboarding"])
|
||||
analytics.track("cta_pressed", attributes: ["screen_name": "onboarding", "action": "start_session"])
|
||||
onStartSession()
|
||||
} label: {
|
||||
Text(localization.string(for: "onboarding.start_session"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user