diff --git a/client/src/components/Dashboard/DashboardViewsTabs.js b/client/src/components/Dashboard/DashboardViewsTabs.js index 7cbcca23b..e07ebcf01 100644 --- a/client/src/components/Dashboard/DashboardViewsTabs.js +++ b/client/src/components/Dashboard/DashboardViewsTabs.js @@ -9,6 +9,7 @@ import { If, Icon } from 'components'; export default function DashboardViewsTabs({ initialViewId = 0, tabs, + defaultTabText = , allTab = true, newViewTab = true, resourceName, @@ -60,7 +61,7 @@ export default function DashboardViewsTabs({ onChange={handleTabsChange} > {allTab && ( - } onClick={handleViewLinkClick} /> + )} {mappedTabs.map((tab) => ( diff --git a/client/src/containers/Sales/Invoice/components.js b/client/src/containers/Sales/Invoice/components.js index 8b00199c7..71b3d60cb 100644 --- a/client/src/containers/Sales/Invoice/components.js +++ b/client/src/containers/Sales/Invoice/components.js @@ -10,70 +10,41 @@ export const statusAccessor = (row) => { return (
+ + + + + + + + + - - -

- {row.overdue_days} -

-
-
- - -
- -

- {row.remaining_days}{' '} - ${row.due_amount}{' '} - -

-
- -
-
- - -
- -

- {row.overdue_days}{' '} - ${row.due_amount}{' '} - -

-
- -
-
- - - - - - - + + + -

- {row.remaining_days} -

+
-
+ + + + + + + diff --git a/client/src/lang/en/index.js b/client/src/lang/en/index.js index 7e5a08a84..643983c87 100644 --- a/client/src/lang/en/index.js +++ b/client/src/lang/en/index.js @@ -869,12 +869,9 @@ export default { save_and_deliver: 'Save & Deliver', deliver_and_new: 'Deliver and new', deliver_continue_editing: 'Deliver (continue editing)', - due_in: 'Due in', - day_partially_paid: 'Day Partially paid,', - due: 'Due.', - overdue_by: 'Overdue by', - day: 'day.', - day_partially_paid: 'Day Partially paid', + due_in: 'Due in {due} day.', + day_partially_paid: 'Partially paid {due} due.', + overdue_by: 'Overdue by {overdue} day.', paid: 'Paid', your_account_has_been_locked: 'Your account has been locked due to repeated failed login attempts. Please wait a few minutes before trying again.', @@ -929,6 +926,6 @@ export default { 'Are you sure you want to inactive this item? You will be able to activate it later', are_sure_to_activate_this_item: 'Are you sure you want to activate this item? You will be able to inactivate it later', - inactivate_item: 'Inactivate Item', - activate_item: 'Activate Item', - }; + inactivate_item: 'Inactivate Item', + activate_item: 'Activate Item', +}; diff --git a/client/src/style/pages/invoice-form.scss b/client/src/style/pages/invoice-form.scss index a7772b4be..c7d184d65 100644 --- a/client/src/style/pages/invoice-form.scss +++ b/client/src/style/pages/invoice-form.scss @@ -45,12 +45,12 @@ } } .status-accessor { - span > p { + span { font-size: 13px; font-weight: 400; line-height: 1.5; } - .fully-paid { + .fully-paid-status { display: inline-block; border-radius: 50%; background: #2ba01d; @@ -62,14 +62,14 @@ background: rgba(92, 112, 128, 0.2); border-radius: 40px; display: block; - height: 6px; + height: 5px; overflow: hidden; position: relative; + margin-top: 5px; width: 80%; } -} - -.overdue-status { -} -.remaining-status { + &.overdue-status { + } + &.remaining-status { + } }