File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,16 @@ struct HubMenu: View {
3333 HubMenuElement ( image: menu. icon, text: menu. title, onTapGesture: {
3434 switch menu {
3535 case . woocommerceAdmin:
36- ServiceLocator . analytics. track ( . hubMenuOptionTapped, withProperties: [ " option " : " admin_menu " ] )
36+ ServiceLocator . analytics. track ( . hubMenuOptionTapped, withProperties: [ Constants . option: " admin_menu " ] )
3737 showingWooCommerceAdmin = true
3838 case . viewStore:
39- ServiceLocator . analytics. track ( . hubMenuOptionTapped, withProperties: [ " option " : " view_store " ] )
39+ ServiceLocator . analytics. track ( . hubMenuOptionTapped, withProperties: [ Constants . option: " view_store " ] )
4040 showingViewStore = true
4141 case . reviews:
42- ServiceLocator . analytics. track ( . hubMenuOptionTapped, withProperties: [ " option " : " reviews " ] )
42+ ServiceLocator . analytics. track ( . hubMenuOptionTapped, withProperties: [ Constants . option: " reviews " ] )
4343 showingReviews = true
4444 case . coupons:
45- ServiceLocator . analytics. track ( . hubMenuOptionTapped, withProperties: [ " option " : " coupons " ] )
45+ ServiceLocator . analytics. track ( . hubMenuOptionTapped, withProperties: [ Constants . option: " coupons " ] )
4646 showingCoupons = true
4747 }
4848 } )
@@ -154,6 +154,7 @@ struct HubMenu: View {
154154 static let padding : CGFloat = 16
155155 static let topBarSpacing : CGFloat = 2
156156 static let avatarSize : CGFloat = 40
157+ static let option = " option "
157158 }
158159
159160 private enum Localization {
You can’t perform that action at this time.
0 commit comments