Skip to content

Commit 18f8a7d

Browse files
committed
Reorder export options before test warning
Move CSVExport and GoogleDriveExport components above the selected-test warning and remove the duplicate render. The Google Drive export remains conditionally rendered when enabled and preserves the autoConnect prop. This reordering makes export controls visible before the warning about exporting test responses.
1 parent 7b88e27 commit 18f8a7d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • projects/packages/forms/src/dashboard/components/export-responses

projects/packages/forms/src/dashboard/components/export-responses/modal.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ const ExportResponsesModal = ( {
7070
size="large"
7171
>
7272
<VStack spacing={ 6 }>
73+
<CSVExport onExport={ onExport } />
74+
{ isGoogleDriveEnabled && (
75+
<GoogleDriveExport onExport={ onExport } autoConnect={ autoConnectGdrive } />
76+
) }
7377
{ selectedTestCount > 0 && (
7478
<Notice status="warning" isDismissible={ false }>
7579
{ sprintf(
@@ -84,10 +88,6 @@ const ExportResponsesModal = ( {
8488
) }
8589
</Notice>
8690
) }
87-
<CSVExport onExport={ onExport } />
88-
{ isGoogleDriveEnabled && (
89-
<GoogleDriveExport onExport={ onExport } autoConnect={ autoConnectGdrive } />
90-
) }
9191
{ selectedIds.length === 0 && selectedTestCount === 0 && (
9292
<Notice status="info" isDismissible={ false }>
9393
{ __(

0 commit comments

Comments
 (0)