- {t('finalSupplyEquipment:addFSErowsTitle')}
-
-
- {t('finalSupplyEquipment:fseSubtitle')}
-
-
- {t('finalSupplyEquipment:reportingResponsibilityInfo')}
+ {t('finalSupplyEquipment:fseTitle')}
+
+ {subTitles.map((v, i) => (
+
+ ))}
+
{
- {t('fuelExport:fuelExportSubtitle')}
+ {t('fuelExport:fuelExportGuide')}
diff --git a/frontend/src/views/FuelSupplies/AddEditFuelSupplies.jsx b/frontend/src/views/FuelSupplies/AddEditFuelSupplies.jsx
index f76063182..935acb711 100644
--- a/frontend/src/views/FuelSupplies/AddEditFuelSupplies.jsx
+++ b/frontend/src/views/FuelSupplies/AddEditFuelSupplies.jsx
@@ -360,12 +360,12 @@ export const AddEditFuelSupplies = () => {
- {t('fuelSupply:addFuelSupplyRowsTitle')}
+ {t('fuelSupply:fuelSupplyTitle')}
{t('fuelSupply:fuelSupplySubtitle')}
diff --git a/frontend/src/views/FuelSupplies/__tests__/AddEditFuelSupplies.test.jsx b/frontend/src/views/FuelSupplies/__tests__/AddEditFuelSupplies.test.jsx
index c31a71d49..4417f3521 100644
--- a/frontend/src/views/FuelSupplies/__tests__/AddEditFuelSupplies.test.jsx
+++ b/frontend/src/views/FuelSupplies/__tests__/AddEditFuelSupplies.test.jsx
@@ -92,7 +92,7 @@ describe('AddEditFuelSupplies', () => {
render(, { wrapper })
// Check for a title or any text that indicates successful rendering
expect(
- screen.getByText('fuelSupply:addFuelSupplyRowsTitle')
+ screen.getByText('fuelSupply:fuelSupplyTitle')
).toBeInTheDocument()
})
diff --git a/frontend/src/views/NotionalTransfers/AddEditNotionalTransfers.jsx b/frontend/src/views/NotionalTransfers/AddEditNotionalTransfers.jsx
index 00a633f7d..fb17e5318 100644
--- a/frontend/src/views/NotionalTransfers/AddEditNotionalTransfers.jsx
+++ b/frontend/src/views/NotionalTransfers/AddEditNotionalTransfers.jsx
@@ -44,24 +44,30 @@ export const AddEditNotionalTransfers = () => {
severity: location.state.severity || 'info'
})
}
- }, [location?.state?.message, location?.state?.severity]);
+ }, [location?.state?.message, location?.state?.severity])
- const validate = (params, validationFn, errorMessage, alertRef, field = null) => {
- const value = field ? params.node?.data[field] : params;
+ const validate = (
+ params,
+ validationFn,
+ errorMessage,
+ alertRef,
+ field = null
+ ) => {
+ const value = field ? params.node?.data[field] : params
if (field && params.colDef.field !== field) {
- return true;
+ return true
}
if (!validationFn(value)) {
alertRef.current?.triggerAlert({
message: errorMessage,
- severity: 'error',
- });
- return false;
+ severity: 'error'
+ })
+ return false
}
- return true; // Proceed with the update
- };
+ return true // Proceed with the update
+ }
const onGridReady = (params) => {
const ensureRowIds = (rows) => {
@@ -118,7 +124,8 @@ export const AddEditNotionalTransfers = () => {
if (params.colDef.field === 'legalName') {
if (params.newValue === currentUser.organization.name) {
alertRef.current?.triggerAlert({
- message: 'You cannot select your own organization as the transaction partner.',
+ message:
+ 'You cannot select your own organization as the transaction partner.',
severity: 'error'
})
params.node.setDataValue('legalName', '')
@@ -129,12 +136,12 @@ export const AddEditNotionalTransfers = () => {
const isValid = validate(
params,
(value) => {
- return value !== null && !isNaN(value) && value > 0;
+ return value !== null && !isNaN(value) && value > 0
},
'Quantity supplied must be greater than 0.',
alertRef,
- 'quantity',
- );
+ 'quantity'
+ )
if (!isValid) {
return
@@ -234,7 +241,11 @@ export const AddEditNotionalTransfers = () => {
useEffect(() => {
if (!optionsLoading) {
- const updatedColumnDefs = notionalTransferColDefs(optionsData, errors, currentUser)
+ const updatedColumnDefs = notionalTransferColDefs(
+ optionsData,
+ errors,
+ currentUser
+ )
setColumnDefs(updatedColumnDefs)
}
}, [errors, optionsData, optionsLoading, currentUser])
@@ -260,6 +271,14 @@ export const AddEditNotionalTransfers = () => {
{t('notionalTransfer:newNotionalTransferTitle')}
+
+ {t('notionalTransfer:newNotionalTransferGuide')}
+
{
{t('otherUses:newOtherUsesTitle')}
+
+ {t('otherUses:newOtherUsesGuide')}
+