From 6be62ef76c46513fef2b7607f0e7c43e9dfc03db Mon Sep 17 00:00:00 2001 From: olewandowski1 Date: Wed, 19 Jun 2024 11:13:53 +0200 Subject: [PATCH 1/3] OAM-201: add deleting orders --- .../tab-navigation/tab-navigation.jsx | 60 +++++++------ src/requisition-order-create/messages_en.json | 10 ++- .../order-create-form.jsx | 2 +- .../order-create-table.jsx | 77 ++++++++++++++++- .../order-create.constant.jsx | 4 + .../order-create.service.js | 86 +++++++++++++++++++ 6 files changed, 208 insertions(+), 31 deletions(-) create mode 100644 src/requisition-order-create/order-create.service.js diff --git a/src/react-components/tab-navigation/tab-navigation.jsx b/src/react-components/tab-navigation/tab-navigation.jsx index 8fc5c4e..b7760d3 100644 --- a/src/react-components/tab-navigation/tab-navigation.jsx +++ b/src/react-components/tab-navigation/tab-navigation.jsx @@ -15,34 +15,42 @@ import React from 'react'; */ const TabNavigation = ({ config }) => { - const getClassName = (isActive, index) => { - let className = ''; - if (config.isTabValidArray && !config.isTabValidArray[index]) { - className += 'tab-invalid'; - } + const getClassName = (isActive, index) => { + let className = ''; + if (config.isTabValidArray && !config.isTabValidArray[index]) { + className += 'tab-invalid'; + } - return isActive ? `${className} active` : className; - }; + return isActive ? `${className} active` : className; + }; - return ( - - ); + return ( +