diff --git a/CHANGELOG.md b/CHANGELOG.md index f0bd8801..cd0f9f09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added +- Add help footer on bulk import upload modal + ## [1.30.2] - 2024-01-31 ### Added diff --git a/messages/ar.json b/messages/ar.json index 5af21657..9f8a9515 100644 --- a/messages/ar.json +++ b/messages/ar.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "سحب وإسقاط الملف", "admin/b2b-organizations.bulk-import.upload.filesType": "نوع الملف", "admin/b2b-organizations.bulk-import.upload.maxSize": "الحجم الأقصي", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "غير معروف", "admin/b2b-organizations.bulk-import.upload.upload": "رفع", "admin/b2b-organizations.bulk-import.upload.uploading": "تحميل الملف والتحقق من صحته...", diff --git a/messages/bg.json b/messages/bg.json index 53f6699e..1756fe9f 100644 --- a/messages/bg.json +++ b/messages/bg.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Плъзнете и пуснете файл", "admin/b2b-organizations.bulk-import.upload.filesType": "Вид файл", "admin/b2b-organizations.bulk-import.upload.maxSize": "Максимален размер", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Неизвестно", "admin/b2b-organizations.bulk-import.upload.upload": "Качване", "admin/b2b-organizations.bulk-import.upload.uploading": "Качване и валидиране на файл...", diff --git a/messages/ca.json b/messages/ca.json index 1bcd8be1..c2b72729 100644 --- a/messages/ca.json +++ b/messages/ca.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Arrossega i deixa anar el fitxer", "admin/b2b-organizations.bulk-import.upload.filesType": "Tipus de fitxer", "admin/b2b-organizations.bulk-import.upload.maxSize": "Mida màxima", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Desconegut", "admin/b2b-organizations.bulk-import.upload.upload": "Penja", "admin/b2b-organizations.bulk-import.upload.uploading": "S'està penjant i validant el fitxer...", diff --git a/messages/context.json b/messages/context.json index 423a6d4c..fbaaf966 100644 --- a/messages/context.json +++ b/messages/context.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Title of the drag and drop area", "admin/b2b-organizations.bulk-import.upload.filesType": "The supported file types", "admin/b2b-organizations.bulk-import.upload.maxSize": "The supported max size", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "An unknown row name within the error report", "admin/b2b-organizations.bulk-import.upload.upload": "The button for uploading a file", "admin/b2b-organizations.bulk-import.upload.uploading": "Text indicating that a file is being uploaded", diff --git a/messages/cs.json b/messages/cs.json index 4bafd0f4..f2a2fbf1 100644 --- a/messages/cs.json +++ b/messages/cs.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Vyberte soubor přetažením", "admin/b2b-organizations.bulk-import.upload.filesType": "Typ souboru", "admin/b2b-organizations.bulk-import.upload.maxSize": "Maximální velikost", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Neznámé", "admin/b2b-organizations.bulk-import.upload.upload": "Nahrát", "admin/b2b-organizations.bulk-import.upload.uploading": "Nahrávání a ověřování souboru...", diff --git a/messages/da.json b/messages/da.json index d9c287d0..51f2c28c 100644 --- a/messages/da.json +++ b/messages/da.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Træk og slip fil", "admin/b2b-organizations.bulk-import.upload.filesType": "Filtype", "admin/b2b-organizations.bulk-import.upload.maxSize": "Maks. størrelse", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Ukendt", "admin/b2b-organizations.bulk-import.upload.upload": "Upload", "admin/b2b-organizations.bulk-import.upload.uploading": "Uploader og validerer fil...", diff --git a/messages/de.json b/messages/de.json index 72b22b62..80c7c0ee 100644 --- a/messages/de.json +++ b/messages/de.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Datei ziehen und ablegen", "admin/b2b-organizations.bulk-import.upload.filesType": "Dateityp", "admin/b2b-organizations.bulk-import.upload.maxSize": "Maximale Größe", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Unbekannt", "admin/b2b-organizations.bulk-import.upload.upload": "Hochladen", "admin/b2b-organizations.bulk-import.upload.uploading": "Hochladen und Validierung der Datei...", diff --git a/messages/el.json b/messages/el.json index e3fbfe4d..2d9d3f8c 100644 --- a/messages/el.json +++ b/messages/el.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Σύρετε και αφήστε αρχείο", "admin/b2b-organizations.bulk-import.upload.filesType": "Τύπος αρχείου", "admin/b2b-organizations.bulk-import.upload.maxSize": "Μέγιστο μέγεθος", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Άγνωστος", "admin/b2b-organizations.bulk-import.upload.upload": "Φόρτωση", "admin/b2b-organizations.bulk-import.upload.uploading": "Φόρτωση και επικύρωση αρχείου...", diff --git a/messages/en.json b/messages/en.json index 04ed353a..c5261078 100644 --- a/messages/en.json +++ b/messages/en.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Drag and drop file", "admin/b2b-organizations.bulk-import.upload.filesType": "File type", "admin/b2b-organizations.bulk-import.upload.maxSize": "Max size", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Unknown", "admin/b2b-organizations.bulk-import.upload.upload": "Upload", "admin/b2b-organizations.bulk-import.upload.uploading": "Uploading and validating file...", diff --git a/messages/es.json b/messages/es.json index a489044a..cefd4b4e 100644 --- a/messages/es.json +++ b/messages/es.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Arrastrar y soltar archivo", "admin/b2b-organizations.bulk-import.upload.filesType": "Tipo de archivo", "admin/b2b-organizations.bulk-import.upload.maxSize": "Tamaño máximo", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Desconocido", "admin/b2b-organizations.bulk-import.upload.upload": "Cargar", "admin/b2b-organizations.bulk-import.upload.uploading": "Cargando y validando archivo...", diff --git a/messages/fi.json b/messages/fi.json index 172dd967..584e1abc 100644 --- a/messages/fi.json +++ b/messages/fi.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Vedä ja pudota tiedosto", "admin/b2b-organizations.bulk-import.upload.filesType": "Tiedostotyyppi", "admin/b2b-organizations.bulk-import.upload.maxSize": "Maksimikoko", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Tuntematon", "admin/b2b-organizations.bulk-import.upload.upload": "Lähetä", "admin/b2b-organizations.bulk-import.upload.uploading": "Lähetetään ja vahvistetaan tiedostoa...", diff --git a/messages/fr.json b/messages/fr.json index 3db7fe7f..1adf031e 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Glisser et déposer le fichier", "admin/b2b-organizations.bulk-import.upload.filesType": "Type de fichier", "admin/b2b-organizations.bulk-import.upload.maxSize": "Taille maximale", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Inconnu", "admin/b2b-organizations.bulk-import.upload.upload": "Télécharger", "admin/b2b-organizations.bulk-import.upload.uploading": "Téléchargement et validation du fichier...", diff --git a/messages/id.json b/messages/id.json index 1234ce78..add15ede 100644 --- a/messages/id.json +++ b/messages/id.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Seret dan jatuhkan file", "admin/b2b-organizations.bulk-import.upload.filesType": "Jenis file", "admin/b2b-organizations.bulk-import.upload.maxSize": "Ukuran maks", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Tidak diketahui", "admin/b2b-organizations.bulk-import.upload.upload": "Unggah", "admin/b2b-organizations.bulk-import.upload.uploading": "Mengunggah dan memvalidasi file...", diff --git a/messages/it.json b/messages/it.json index 8f49175b..0274f334 100644 --- a/messages/it.json +++ b/messages/it.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Trascina e rilascia file", "admin/b2b-organizations.bulk-import.upload.filesType": "Tipo di file", "admin/b2b-organizations.bulk-import.upload.maxSize": "Dimensione massima", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Sconosciuto", "admin/b2b-organizations.bulk-import.upload.upload": "Carica", "admin/b2b-organizations.bulk-import.upload.uploading": "Caricamento e convalida file in corso...", diff --git a/messages/ja.json b/messages/ja.json index e509ebb8..0d71229d 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "ファイルをドラッグ&ドロップ", "admin/b2b-organizations.bulk-import.upload.filesType": "ファイル形式", "admin/b2b-organizations.bulk-import.upload.maxSize": "最大サイズ", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "不明", "admin/b2b-organizations.bulk-import.upload.upload": "アップロードする", "admin/b2b-organizations.bulk-import.upload.uploading": "ファイルのアップロードと検証中です", diff --git a/messages/ko.json b/messages/ko.json index e7046305..3a5b799d 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "파일 끌어서 놓기", "admin/b2b-organizations.bulk-import.upload.filesType": "파일 유형", "admin/b2b-organizations.bulk-import.upload.maxSize": "최대 크기", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "알 수 없음", "admin/b2b-organizations.bulk-import.upload.upload": "업로드", "admin/b2b-organizations.bulk-import.upload.uploading": "파일 업로드 및 유효성 검사...", diff --git a/messages/nl.json b/messages/nl.json index eb611930..aa4cc4b9 100644 --- a/messages/nl.json +++ b/messages/nl.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Bestand slepen en neerzetten", "admin/b2b-organizations.bulk-import.upload.filesType": "Bestandstype", "admin/b2b-organizations.bulk-import.upload.maxSize": "Maximale grootte", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Onbekend", "admin/b2b-organizations.bulk-import.upload.upload": "Upload", "admin/b2b-organizations.bulk-import.upload.uploading": "Bestand uploaden en valideren...", diff --git a/messages/no.json b/messages/no.json index 18900ba2..02d53b2a 100644 --- a/messages/no.json +++ b/messages/no.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Dra-og-slipp-fil", "admin/b2b-organizations.bulk-import.upload.filesType": "Filtype", "admin/b2b-organizations.bulk-import.upload.maxSize": "Maks størrelse", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Ukjent", "admin/b2b-organizations.bulk-import.upload.upload": "Last opp", "admin/b2b-organizations.bulk-import.upload.uploading": "Laster opp og godkjenner fil...", diff --git a/messages/pl.json b/messages/pl.json index a4a4159e..e25da8d1 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Przeciągnij i upuść plik", "admin/b2b-organizations.bulk-import.upload.filesType": "Rodzaj pliku", "admin/b2b-organizations.bulk-import.upload.maxSize": "Rozmiar maksymalny", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Nieznany", "admin/b2b-organizations.bulk-import.upload.upload": "Prześlij", "admin/b2b-organizations.bulk-import.upload.uploading": "Przesyłanie i sprawdzanie pliku...", diff --git a/messages/pt.json b/messages/pt.json index c211d636..dbeb2ddf 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Arraste e solte o arquivo", "admin/b2b-organizations.bulk-import.upload.filesType": "Tipo de arquivo", "admin/b2b-organizations.bulk-import.upload.maxSize": "Tamanho máximo", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Desconhecido", "admin/b2b-organizations.bulk-import.upload.upload": "Enviar", "admin/b2b-organizations.bulk-import.upload.uploading": "Enviando e validando o arquivo...", diff --git a/messages/ro.json b/messages/ro.json index 158afb34..65687c8b 100644 --- a/messages/ro.json +++ b/messages/ro.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Încarcă fișierul cu ajutorul funcției de drag and drop", "admin/b2b-organizations.bulk-import.upload.filesType": "Tip fișier", "admin/b2b-organizations.bulk-import.upload.maxSize": "Dimensiune maximă", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Necunoscut", "admin/b2b-organizations.bulk-import.upload.upload": "Încarcă", "admin/b2b-organizations.bulk-import.upload.uploading": "Se încarcă și se validează fișierul...", diff --git a/messages/ru.json b/messages/ru.json index 94e56af7..35c0bde1 100644 --- a/messages/ru.json +++ b/messages/ru.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Перетяните файл сюда", "admin/b2b-organizations.bulk-import.upload.filesType": "Тип файла", "admin/b2b-organizations.bulk-import.upload.maxSize": "Максимальный размер", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Неизвестно", "admin/b2b-organizations.bulk-import.upload.upload": "Загрузить", "admin/b2b-organizations.bulk-import.upload.uploading": "Загрузка и проверка файла...", diff --git a/messages/sk.json b/messages/sk.json index 0b0face4..2265f146 100644 --- a/messages/sk.json +++ b/messages/sk.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Presuňte súbory potiahnutím", "admin/b2b-organizations.bulk-import.upload.filesType": "Typ súboru", "admin/b2b-organizations.bulk-import.upload.maxSize": "Maximálna veľkosť", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Neznáme", "admin/b2b-organizations.bulk-import.upload.upload": "Nahrať", "admin/b2b-organizations.bulk-import.upload.uploading": "Nahrávanie a overovanie súborov...", diff --git a/messages/sl.json b/messages/sl.json index 5f394d32..2017e732 100644 --- a/messages/sl.json +++ b/messages/sl.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Povlecite in spustite datoteko", "admin/b2b-organizations.bulk-import.upload.filesType": "Vrsta datoteke", "admin/b2b-organizations.bulk-import.upload.maxSize": "Največja velikost", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Neznano", "admin/b2b-organizations.bulk-import.upload.upload": "Naloži", "admin/b2b-organizations.bulk-import.upload.uploading": "Nalaganje in preverjanje datoteke...", diff --git a/messages/sv.json b/messages/sv.json index d9852488..ca8d9065 100644 --- a/messages/sv.json +++ b/messages/sv.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Drag 'n Drop fil", "admin/b2b-organizations.bulk-import.upload.filesType": "Filtyp", "admin/b2b-organizations.bulk-import.upload.maxSize": "Max storlek", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Unknown", "admin/b2b-organizations.bulk-import.upload.upload": "Ladda Upp", "admin/b2b-organizations.bulk-import.upload.uploading": "Laddar upp och validerar fil...", diff --git a/messages/th.json b/messages/th.json index 4aac7a96..13b7a0ae 100644 --- a/messages/th.json +++ b/messages/th.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "ลากและวางไฟล์", "admin/b2b-organizations.bulk-import.upload.filesType": "ชนิดไฟล์", "admin/b2b-organizations.bulk-import.upload.maxSize": "ขนาดสูงสุด", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "ไม่ทราบ", "admin/b2b-organizations.bulk-import.upload.upload": "อัปโหลด", "admin/b2b-organizations.bulk-import.upload.uploading": "กำลังอัปโหลดและตรวจสอบความถูกต้องของไฟล์...", diff --git a/messages/uk.json b/messages/uk.json index c3a996d2..4fd4bfa5 100644 --- a/messages/uk.json +++ b/messages/uk.json @@ -102,6 +102,7 @@ "admin/b2b-organizations.bulk-import.upload.dragDrop": "Перетягніть файл сюди", "admin/b2b-organizations.bulk-import.upload.filesType": "Тип файлу", "admin/b2b-organizations.bulk-import.upload.maxSize": "Максимальний розмір", + "admin/b2b-organizations.bulk-import.upload.helpLinks": "Need help? Download the VTEX file template or view our best practices guide.", "admin/b2b-organizations.bulk-import.upload.unknownRowName": "Невідомо", "admin/b2b-organizations.bulk-import.upload.upload": "Завантажити", "admin/b2b-organizations.bulk-import.upload.uploading": "Завантаження та перевірка файлу...", diff --git a/react/bulkImport/messages.ts b/react/bulkImport/messages.ts index e384c277..0cd42eb9 100644 --- a/react/bulkImport/messages.ts +++ b/react/bulkImport/messages.ts @@ -26,6 +26,7 @@ export type BulkImportMessageKey = | 'reportInformationStep3Upload' | 'reportInformationStep3Import' | 'reportInformationStep4' + | 'helpLinks' | 'downloadReviewedLink' | 'errorMessage' | 'permissionAlertTooltip' @@ -49,6 +50,9 @@ export const bulkUploadMessages: Record< maxSize: { id: 'admin/b2b-organizations.bulk-import.upload.maxSize', }, + helpLinks: { + id: 'admin/b2b-organizations.bulk-import.upload.helpLinks', + }, unknownRowName: { id: 'admin/b2b-organizations.bulk-import.upload.unknownRowName', }, diff --git a/react/components/CreateOrganizationButton/CreateOrganizationButton.tsx b/react/components/CreateOrganizationButton/CreateOrganizationButton.tsx index 62680e57..7f8022b3 100644 --- a/react/components/CreateOrganizationButton/CreateOrganizationButton.tsx +++ b/react/components/CreateOrganizationButton/CreateOrganizationButton.tsx @@ -5,6 +5,7 @@ import { Menu, MenuItem, PageHeaderMenuButton, + Text, useMenuState, } from '@vtex/admin-ui' import { UploadModal } from '@vtex/bulk-import-ui' @@ -27,9 +28,13 @@ import useStartBulkImport from '../../hooks/useStartBulkImport' import ReportDownloadLink from '../ReportDownloadLink/ReportDownloadLink' import { ValidationScreen } from '../UploadingScreen' import { ImportInBulkTooltip } from '../ImportInBulkTooltip' +import { + B2B_BULK_IMPORT_TEMPLATE_LINK, + B2B_BULK_IMPORT_BEST_PRACTICES_LINK, +} from '../../utils/constants' const CreateOrganizationButton = () => { - const { formatMessage } = useTranslate() + const { formatMessage, translate: t } = useTranslate() const menuState = useMenuState() const [open, setOpen] = useState(false) const [uploadModalOpen, setUploadModalOpen] = useState(false) @@ -70,6 +75,18 @@ const CreateOrganizationButton = () => { + {t('helpLinks', { + 'template-link': (content: string) => ( + {content} + ), + 'best-practices-link': (content: string) => ( + {content} + ), + })} + + } open={uploadModalOpen} onOpenChange={setUploadModalOpen} uploadFile={uploadBulkImportFile} diff --git a/react/utils/constants.ts b/react/utils/constants.ts index 4c7a4190..e224b5c2 100644 --- a/react/utils/constants.ts +++ b/react/utils/constants.ts @@ -1 +1,4 @@ export const B2B_CHECKOUT_SESSION_KEY = 'b2b-checkout-settings' +export const B2B_BULK_IMPORT_TEMPLATE_LINK = + 'https://io.vtex.com.br/b2b-bulk-import/b2b-bulk-import-template.xlsx' +export const B2B_BULK_IMPORT_BEST_PRACTICES_LINK = 'https://help.vtex.com/'