Skip to content

Commit 1ad40a7

Browse files
chore: logic button error
1 parent 2951f01 commit 1ad40a7

File tree

1 file changed

+3
-9
lines changed
  • assets/src/dashboard/parts/connect

1 file changed

+3
-9
lines changed

assets/src/dashboard/parts/connect/index.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,22 +185,16 @@ const ConnectLayout = () => {
185185
/>
186186

187187

188-
<div
188+
<button
189189
onClick={ () => setShowBenefits( ! showBenefits ) }
190-
className="inline-flex items-center bg-light-blue px-4 py-1.5 rounded-full mb-4 text-sm text-gray-500 cursor-pointer transition-all hover:bg-blue-100"
190+
className="inline-flex items-center bg-light-blue px-4 py-1.5 rounded-full mb-4 text-sm text-gray-500 cursor-pointer transition-all hover:bg-blue-100 border-none"
191191
role="button"
192-
tabIndex="0"
193-
onKeyPress={ ( e ) => {
194-
if ( 'Enter' === e.key || ' ' === e.key ) {
195-
setShowBenefits( ! showBenefits );
196-
}
197-
}}
198192
>
199193
<span>{ optimoleDashboardApp.strings.account_needed_benefits_toggle }</span>
200194
<span
201195
className={ `dashicons dashicons-arrow-${ showBenefits ? 'up' : 'down' } ml-1` }
202196
/>
203-
</div>
197+
</button>
204198

205199
{ showBenefits && (
206200
<div className="mb-4">

0 commit comments

Comments
 (0)