From f8ffebb600200eeb36f17e975cd44cb570f55394 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 30 Jan 2024 11:55:25 +0100 Subject: [PATCH] Put plain text and rich text formats next to each other --- .../components/ShareDialog/ExportAnnotations.tsx | 12 ++++++------ .../ShareDialog/test/ExportAnnotations-test.js | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/sidebar/components/ShareDialog/ExportAnnotations.tsx b/src/sidebar/components/ShareDialog/ExportAnnotations.tsx index 4fcbf142389..ddb360e0e19 100644 --- a/src/sidebar/components/ShareDialog/ExportAnnotations.tsx +++ b/src/sidebar/components/ShareDialog/ExportAnnotations.tsx @@ -55,18 +55,18 @@ const exportFormats: ExportFormat[] = [ shortTitle: 'Text', description: 'For import into word processors as plain text', }, - { - value: 'csv', - title: 'Table (CSV)', - shortTitle: 'CSV', - description: 'For import into a spreadsheet', - }, { value: 'html', title: 'Rich text (HTML)', shortTitle: 'HTML', description: 'For import into word processors as rich text', }, + { + value: 'csv', + title: 'Table (CSV)', + shortTitle: 'CSV', + description: 'For import into a spreadsheet', + }, ]; function formatToMimeType(format: ExportFormat['value']): string { diff --git a/src/sidebar/components/ShareDialog/test/ExportAnnotations-test.js b/src/sidebar/components/ShareDialog/test/ExportAnnotations-test.js index 271c90a07ea..53ca2939442 100644 --- a/src/sidebar/components/ShareDialog/test/ExportAnnotations-test.js +++ b/src/sidebar/components/ShareDialog/test/ExportAnnotations-test.js @@ -269,13 +269,13 @@ describe('ExportAnnotations', () => { optionText(1, 'description'), 'For import into word processors as plain text', ); - assert.equal(optionText(2, 'name'), 'Table (CSV)'); - assert.equal(optionText(2, 'description'), 'For import into a spreadsheet'); - assert.equal(optionText(3, 'name'), 'Rich text (HTML)'); + assert.equal(optionText(2, 'name'), 'Rich text (HTML)'); assert.equal( - optionText(3, 'description'), + optionText(2, 'description'), 'For import into word processors as rich text', ); + assert.equal(optionText(3, 'name'), 'Table (CSV)'); + assert.equal(optionText(3, 'description'), 'For import into a spreadsheet'); }); [