1
- import { Menu } from '@headlessui/react' ;
1
+ import { Menu , MenuButton , MenuItem , MenuItems } from '@headlessui/react' ;
2
2
import Pagination from '@mui/material/Pagination' ;
3
3
import { type ChangeEvent , type FC , useState } from 'react' ;
4
4
@@ -220,15 +220,15 @@ const InnerReviewPage: FC<ReviewPageProps> = ({ clientConfig, organism, group, a
220
220
< div className = 'flex justify-end items-center gap-3 mt-auto ' >
221
221
{ finishedCount > 0 && (
222
222
< Menu as = 'div' className = ' inline-block text-left' >
223
- < Menu . Button className = 'border rounded-md p-1 bg-primary-600 text-white px-2' >
223
+ < MenuButton className = 'border rounded-md p-1 bg-primary-600 text-white px-2' >
224
224
< BiTrash className = 'inline-block w-4 h-4 -mt-0.5 mr-1.5' />
225
225
Discard sequences
226
226
< IwwaArrowDown className = 'inline-block ml-1 w-3 h-3 -mt-0.5' />
227
- </ Menu . Button >
228
- < Menu . Items className = 'origin-top-right absolute z-50 bg-white' >
227
+ </ MenuButton >
228
+ < MenuItems className = 'origin-top-right absolute z-50 bg-white' >
229
229
< div className = 'py-1' >
230
230
{ errorCount > 0 && showErrors && (
231
- < Menu . Item >
231
+ < MenuItem >
232
232
< button
233
233
className = { menuItemClassName }
234
234
onClick = { ( ) =>
@@ -247,9 +247,9 @@ const InnerReviewPage: FC<ReviewPageProps> = ({ clientConfig, organism, group, a
247
247
< BiTrash className = 'inline-block w-4 h-4 -mt-0.5 mr-1.5' />
248
248
Discard { errorCount } sequence{ errorCount > 1 ? 's' : '' } with errors
249
249
</ button >
250
- </ Menu . Item >
250
+ </ MenuItem >
251
251
) }
252
- < Menu . Item >
252
+ < MenuItem >
253
253
< button
254
254
className = { menuItemClassName }
255
255
onClick = { ( ) =>
@@ -267,9 +267,9 @@ const InnerReviewPage: FC<ReviewPageProps> = ({ clientConfig, organism, group, a
267
267
< BiTrash className = 'inline-block w-4 h-4 -mt-0.5 mr-1.5' />
268
268
Discard all { finishedCount } processed sequences
269
269
</ button >
270
- </ Menu . Item >
270
+ </ MenuItem >
271
271
</ div >
272
- </ Menu . Items >
272
+ </ MenuItems >
273
273
</ Menu >
274
274
) }
275
275
{ processedCount > 0 && (
0 commit comments