Improved export button ui.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good

This commit is contained in:
Tom Butcher 2026-03-06 21:13:42 +00:00
parent 1558e93b63
commit 8150372fda

View File

@ -34,7 +34,7 @@ const ExportListButton = ({
const menuItems = [
{
key: 'excel',
label: excelLoading ? 'Exporting...' : 'Microsoft Excel',
label: excelLoading ? 'Exporting...' : 'Excel File',
icon: <ExcelIcon />,
disabled: exportLoading,
children: [
@ -54,12 +54,6 @@ const ExportListButton = ({
}
]
},
{
key: 'odata',
label: 'OData Connection',
icon: <ODataIcon />,
onClick: () => setOdataModalOpen(true)
},
{
key: 'csv',
label: csvLoading ? 'Exporting...' : 'CSV File',
@ -73,6 +67,15 @@ const ExportListButton = ({
setCsvLoading(false)
}
}
},
{
type: 'divider'
},
{
key: 'odata',
label: 'OData Connection',
icon: <ODataIcon />,
onClick: () => setOdataModalOpen(true)
}
]