File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
assets/src/dashboard/parts/connected Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -65,19 +65,23 @@ const ConnectedLayout = ({
65
65
hasApplication,
66
66
hasConflicts,
67
67
siteSettings,
68
- extraVisits
68
+ extraVisits,
69
+ plan
69
70
} = useSelect ( select => {
70
71
const {
71
72
isConnected,
72
73
hasApplication,
73
74
getConflicts,
74
- getSiteSettings
75
+ getSiteSettings,
76
+ getUserData
75
77
} = select ( 'optimole' ) ;
76
78
77
79
const conflicts = getConflicts ( ) ;
78
80
const siteSettings = getSiteSettings ( ) ;
81
+ const user = getUserData ( ) ;
79
82
80
83
return {
84
+ plan : user ?. plan ,
81
85
isConnected : isConnected ( ) ,
82
86
hasApplication : hasApplication ( ) ,
83
87
hasConflicts : 0 < conflicts . count || 0 ,
@@ -144,9 +148,11 @@ const ConnectedLayout = ({
144
148
}
145
149
} , [ canSave ] ) ;
146
150
151
+ const showBFBanner = 'free' === plan && optimoleDashboardApp ?. bf_notices ?. banner ;
152
+
147
153
return (
148
154
< div className = "optml-connected 2xl:max-w-screen-xl max-w-screen px-4 mx-auto" >
149
- { optimoleDashboardApp ?. bf_notices ?. banner && < BlackFridayBanner /> }
155
+ { showBFBanner && < BlackFridayBanner /> }
150
156
151
157
< div className = "flex flex-col xl:flex-row mx-auto gap-5" >
152
158
< div
You can’t perform that action at this time.
0 commit comments