diff --git a/frontend/src/components/SelectTag/index.jsx b/frontend/src/components/SelectTag/index.jsx index d58b1d168..e983a18e8 100644 --- a/frontend/src/components/SelectTag/index.jsx +++ b/frontend/src/components/SelectTag/index.jsx @@ -1,6 +1,5 @@ import { Select, Tag } from 'antd'; import { generate as uniqueId } from 'shortid'; -import { tagColor } from '@/utils/statusTagColor'; export default function SelectTag({ options, defaultValue }) { return ( @@ -11,19 +10,16 @@ export default function SelectTag({ options, defaultValue }) { }} > {options?.map((value) => { - const option = tagColor(value); if (option) return ( - - {translate(option.label)} - + {translate(option.label)} ); else return ( - {value} + {value} ); })} diff --git a/frontend/src/modules/InvoiceModule/RecordPaymentModule/components/Payment.jsx b/frontend/src/modules/InvoiceModule/RecordPaymentModule/components/Payment.jsx index 5fd187c8a..90ba819a5 100644 --- a/frontend/src/modules/InvoiceModule/RecordPaymentModule/components/Payment.jsx +++ b/frontend/src/modules/InvoiceModule/RecordPaymentModule/components/Payment.jsx @@ -10,7 +10,7 @@ import { useMoney } from '@/settings'; import RecordPayment from './RecordPayment'; import useLanguage from '@/locale/useLanguage'; -import { tagColor } from '@/utils/statusTagColor'; + import { useNavigate } from 'react-router-dom'; export default function Payment({ config, currentItem }) { @@ -57,11 +57,7 @@ export default function Payment({ config, currentItem }) { currentErp.year || '' }`} ghost={false} - tags={ - - {currentErp.paymentStatus && translate(currentErp.paymentStatus)} - - } + tags={{currentErp.paymentStatus && translate(currentErp.paymentStatus)}} // subTitle="This is cuurent erp page" extra={[