You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Use Privy authentication OR wallet connection for access
127
146
consthasAccess=isAuthenticated||!!account;
128
-
147
+
129
148
return(
130
-
<divclassName={styles.mainContent}>
131
-
<MenuSectiontitle="General">
132
-
<Tooltip
133
-
isDisabled={hasAccess}
134
-
label="Sign in to access dashboard features."
135
-
placement="right"
136
-
>
137
-
<divclassName={styles.menuItem}>
138
-
<Box
139
-
pointerEvents={hasAccess ? 'auto' : 'none'}
140
-
opacity={hasAccess ? 1 : 0.5}
141
-
>
142
-
<DashboardButton/>
143
-
</Box>
144
-
</div>
145
-
</Tooltip>
146
-
<Tooltip
147
-
isDisabled={hasAccess}
148
-
label="Sign in to access referral system and earn bonus jobs."
149
-
placement="right"
150
-
>
151
-
<divclassName={styles.menuItem}>
152
-
<Box
153
-
pointerEvents={hasAccess ? 'auto' : 'none'}
154
-
opacity={hasAccess ? 1 : 0.5}
155
-
>
156
-
<ReferralsButton/>
157
-
</Box>
158
-
</div>
159
-
</Tooltip>
160
-
</MenuSection>
149
+
<divclassName={styles.mainContent}>
150
+
<MenuSectiontitle="General">
151
+
<Tooltip
152
+
isDisabled={hasAccess}
153
+
label="Sign in to access dashboard features."
154
+
placement="right"
155
+
>
156
+
<divclassName={styles.menuItem}>
157
+
<Box
158
+
pointerEvents={hasAccess ? 'auto' : 'none'}
159
+
opacity={hasAccess ? 1 : 0.5}
160
+
>
161
+
<DashboardButton/>
162
+
</Box>
163
+
</div>
164
+
</Tooltip>
165
+
<Tooltip
166
+
isDisabled={hasAccess}
167
+
label="Sign in to access referral system and earn bonus jobs."
168
+
placement="right"
169
+
>
170
+
<divclassName={styles.menuItem}>
171
+
<Box
172
+
pointerEvents={hasAccess ? 'auto' : 'none'}
173
+
opacity={hasAccess ? 1 : 0.5}
174
+
>
175
+
<ReferralsButton/>
176
+
</Box>
177
+
</div>
178
+
</Tooltip>
179
+
</MenuSection>
161
180
162
-
<Dividermy={0.5}borderColor="whiteAlpha.200"/>
181
+
<Dividermy={0.5}borderColor="whiteAlpha.200"/>
163
182
164
-
<MenuSectiontitle="Preferences">
165
-
<Tooltip
166
-
isDisabled={hasAccess}
167
-
label="Sign in to access personalized settings, scheduling preferences, and configurations."
168
-
placement="right"
183
+
<MenuSection
184
+
title="Preferences"
185
+
isClickable={hasAccess&&isWhitelisted===true}
186
+
onClick={()=>{
187
+
if(hasAccess&&isWhitelisted===true){
188
+
router.push('/metrics');
189
+
}
190
+
}}
169
191
>
170
-
<divclassName={styles.menuItem}>
171
-
<Box
172
-
pointerEvents={hasAccess ? 'auto' : 'none'}
173
-
opacity={hasAccess ? 1 : 0.5}
174
-
>
175
-
<SettingsButton/>
176
-
</Box>
177
-
</div>
178
-
</Tooltip>
179
-
<BoxclassName={styles.modelSelection}>
180
-
<ModelSelectionButton/>
181
-
</Box>
182
-
</MenuSection>
192
+
<Tooltip
193
+
isDisabled={hasAccess}
194
+
label="Sign in to access personalized settings, scheduling preferences, and configurations."
195
+
placement="right"
196
+
>
197
+
<divclassName={styles.menuItem}>
198
+
<Box
199
+
pointerEvents={hasAccess ? 'auto' : 'none'}
200
+
opacity={hasAccess ? 1 : 0.5}
201
+
>
202
+
<SettingsButton/>
203
+
</Box>
204
+
</div>
205
+
</Tooltip>
206
+
<BoxclassName={styles.modelSelection}>
207
+
<ModelSelectionButton/>
208
+
</Box>
209
+
</MenuSection>
183
210
184
-
<Dividermy={0.5}borderColor="whiteAlpha.200"/>
211
+
<Dividermy={0.5}borderColor="whiteAlpha.200"/>
185
212
186
-
<MenuSectiontitle="Advanced">
187
-
<Tooltip
188
-
isDisabled={hasAccess}
189
-
label="Sign in to access advanced features like workflows, API integrations, device sync, and CDP wallets."
190
-
placement="right"
191
-
>
192
-
<div>
193
-
<Box
194
-
pointerEvents={hasAccess ? 'auto' : 'none'}
195
-
opacity={hasAccess ? 1 : 0.5}
196
-
pl={1}
197
-
>
198
-
<divclassName={styles.menuItem}>
199
-
<AgentsButton/>
200
-
</div>
201
-
<divclassName={styles.menuItem}>
202
-
<TeamsButton/>
203
-
</div>
204
-
<StyledTooltip
205
-
label="Coinbase Developer Platform's managed wallets integration coming soon. This will enable secure key management and automated CDP interactions such as trading, borrowing, and more."
206
-
placement="right"
213
+
<MenuSectiontitle="Advanced">
214
+
<Tooltip
215
+
isDisabled={hasAccess}
216
+
label="Sign in to access advanced features like workflows, API integrations, device sync, and CDP wallets."
217
+
placement="right"
218
+
>
219
+
<div>
220
+
<Box
221
+
pointerEvents={hasAccess ? 'auto' : 'none'}
222
+
opacity={hasAccess ? 1 : 0.5}
223
+
pl={1}
207
224
>
208
225
<divclassName={styles.menuItem}>
209
-
<CdpWalletsButton/>
226
+
<AgentsButton/>
227
+
</div>
228
+
<divclassName={styles.menuItem}>
229
+
<TeamsButton/>
210
230
</div>
211
-
</StyledTooltip>
212
-
</Box>
213
-
</div>
214
-
</Tooltip>
215
-
</MenuSection>
231
+
<StyledTooltip
232
+
label="Coinbase Developer Platform's managed wallets integration coming soon. This will enable secure key management and automated CDP interactions such as trading, borrowing, and more."
0 commit comments