ordering-ui-admin-external 1.15.0 → 1.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_bundles/{ordering-ui-admin.e2a58dcc95d6a983dfc0.js → ordering-ui-admin.761f3d55438faf70811d.js} +2 -2
- package/_modules/components/BusinessIntelligence/BusinessReviewDetails/index.js +5 -5
- package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +29 -4
- package/_modules/components/BusinessIntelligence/InvoiceBusinessManager/index.js +16 -1
- package/_modules/components/BusinessIntelligence/InvoiceDriverManager/index.js +16 -1
- package/_modules/components/BusinessIntelligence/InvoiceManager/index.js +14 -1
- package/_modules/components/BusinessIntelligence/InvoiceOrdertype/styles.js +1 -1
- package/_modules/components/BusinessIntelligence/ProductReviewDetails/index.js +4 -3
- package/_modules/components/BusinessIntelligence/Reports/index.js +14 -1
- package/_modules/components/BusinessIntelligence/ReviewProductsListing/index.js +52 -16
- package/_modules/components/BusinessIntelligence/ReviewsListing/index.js +32 -4
- package/_modules/components/BusinessIntelligence/UserReviewDetails/index.js +4 -3
- package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +35 -10
- package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +21 -2
- package/_modules/components/CartRecovery/RecoveryActionListing/index.js +22 -2
- package/_modules/components/Delivery/DeliveryUsersListing/index.js +13 -5
- package/_modules/components/Delivery/DriversCompaniesListing/index.js +36 -13
- package/_modules/components/Delivery/DriversCompanyDetailsForm/index.js +31 -6
- package/_modules/components/Delivery/DriversGroupBusinesses/index.js +4 -2
- package/_modules/components/Delivery/DriversGroupBusinesses/styles.js +17 -14
- package/_modules/components/Delivery/DriversGroupDeliveryDetails/index.js +5 -2
- package/_modules/components/Delivery/DriversGroupDeliveryDetails/styles.js +9 -4
- package/_modules/components/Delivery/DriversGroupDetails/index.js +35 -5
- package/_modules/components/Delivery/DriversGroupGeneralForm/index.js +3 -1
- package/_modules/components/Delivery/DriversGroupGeneralForm/styles.js +8 -5
- package/_modules/components/Delivery/DriversGroupLogistics/index.js +21 -4
- package/_modules/components/Delivery/DriversGroupLogistics/styles.js +16 -13
- package/_modules/components/Delivery/DriversGroupLogs/index.js +8 -4
- package/_modules/components/Delivery/DriversGroupLogs/styles.js +19 -16
- package/_modules/components/Delivery/DriversGroupPaymethods/index.js +5 -2
- package/_modules/components/Delivery/DriversGroupPaymethods/styles.js +14 -11
- package/_modules/components/Delivery/DriversGroupsList/index.js +5 -2
- package/_modules/components/Delivery/DriversGroupsList/styles.js +5 -2
- package/_modules/components/Delivery/DriversGroupsListing/index.js +37 -16
- package/_modules/components/Delivery/UserAddForm/index.js +29 -3
- package/_modules/components/Delivery/UserAddForm/styles.js +21 -3
- package/_modules/components/Delivery/UserDetails/index.js +33 -5
- package/_modules/components/Delivery/UsersList/index.js +6 -3
- package/_modules/components/Delivery/UsersList/styles.js +10 -7
- package/_modules/components/Delivery/UsersListingHeader/index.js +8 -4
- package/_modules/components/Loyalty/GiftCardDetail/styles.js +68 -0
- package/_modules/components/Loyalty/GiftCards/index.js +23 -2
- package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +26 -1
- package/_modules/components/Loyalty/PointsWalletLevels/index.js +22 -1
- package/_modules/components/Loyalty/RewardsPrograms/index.js +34 -4
- package/_modules/components/Loyalty/Wallet/index.js +20 -1
- package/_modules/components/Marketing/AdBannersListing/index.js +24 -5
- package/_modules/components/Marketing/BannerImageDetails/index.js +2 -1
- package/_modules/components/Marketing/CampaignDetail/index.js +19 -1
- package/_modules/components/Marketing/CampaignEmail/styles.js +5 -3
- package/_modules/components/Marketing/CampaignListing/index.js +19 -0
- package/_modules/components/Marketing/CampaignNotification/styles.js +5 -3
- package/_modules/components/Marketing/CampaignSMS/styles.js +5 -3
- package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +2 -1
- package/_modules/components/Marketing/EnterprisePromotionListing/index.js +24 -4
- package/_modules/components/Marketing/PageBanner/index.js +27 -3
- package/_modules/components/Messages/MessagesListing/index.js +18 -1
- package/_modules/components/MyProducts/AdvancedSettings/FontStyleGroup.js +85 -0
- package/_modules/components/MyProducts/AdvancedSettings/OrderType.js +45 -0
- package/_modules/components/MyProducts/AdvancedSettings/SettingComponent.js +91 -0
- package/_modules/components/MyProducts/AdvancedSettings/index.js +626 -0
- package/_modules/components/MyProducts/AdvancedSettings/styles.js +146 -0
- package/_modules/components/MyProducts/AppLayout/index.js +9 -1
- package/_modules/components/MyProducts/AppLayout/styles.js +20 -3
- package/_modules/components/MyProducts/CallCenterApp/index.js +1 -1
- package/_modules/components/MyProducts/CustomerApp/index.js +2 -2
- package/_modules/components/MyProducts/DriverApp/index.js +2 -2
- package/_modules/components/MyProducts/KioskApp/index.js +1 -1
- package/_modules/components/MyProducts/OrderingWebsite/index.js +37 -6
- package/_modules/components/MyProducts/OrderingWebsite/styles.js +39 -5
- package/_modules/components/MyProducts/PosApp/index.js +1 -1
- package/_modules/components/MyProducts/StoreApp/index.js +2 -2
- package/_modules/components/OrderingProducts/OrderingProductDetails/index.js +21 -1
- package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +18 -1
- package/_modules/components/Orders/DeliveriesManager/index.js +0 -1
- package/_modules/components/Orders/Messages/index.js +32 -29
- package/_modules/components/Orders/OrderDetails/index.js +38 -22
- package/_modules/components/Orders/OrderDetailsHeader/index.js +2 -3
- package/_modules/components/Orders/OrdersContentHeader/index.js +2 -2
- package/_modules/components/Orders/OrdersFilterGroup/index.js +112 -9
- package/_modules/components/Orders/OrdersFilterGroup/styles.js +11 -3
- package/_modules/components/Orders/OrdersManager/index.js +0 -1
- package/_modules/components/Settings/CountriesList/index.js +27 -4
- package/_modules/components/Settings/Deliverect/index.js +23 -2
- package/_modules/components/Settings/DoordashConnect/index.js +23 -2
- package/_modules/components/Settings/DropdownOptionList/index.js +27 -4
- package/_modules/components/Settings/IntegrationListing/index.js +3 -3
- package/_modules/components/Settings/ItsaCheckmate/index.js +23 -2
- package/_modules/components/Settings/LalamoveConnect/index.js +23 -2
- package/_modules/components/Settings/PickerExpress/index.js +23 -2
- package/_modules/components/Settings/PlaceListing/index.js +40 -4
- package/_modules/components/Settings/Settings/index.js +86 -45
- package/_modules/components/Settings/SettingsDetail/index.js +14 -1
- package/_modules/components/Settings/SitesAuthSettings/index.js +17 -1
- package/_modules/components/SidebarMenu/index.js +0 -1
- package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +4 -9
- package/_modules/components/Stores/BusinessAdd/BusinessDetails/styles.js +3 -1
- package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +13 -4
- package/_modules/components/Stores/BusinessAdd/DeliveryZone/styles.js +16 -10
- package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +11 -3
- package/_modules/components/Stores/BusinessAdd/PaymentMethods/styles.js +3 -1
- package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +17 -6
- package/_modules/components/Stores/BusinessAdd/ReceiveOrders/styles.js +3 -1
- package/_modules/components/Stores/BusinessAdd/index.js +38 -8
- package/_modules/components/Stores/BusinessAdd/styles.js +8 -4
- package/_modules/components/Stores/BusinessAddStore/index.js +1 -1
- package/_modules/components/Stores/BusinessBrandListing/index.js +37 -4
- package/_modules/components/Stores/BusinessDeliveryPickupMore/index.js +20 -1
- package/_modules/components/Stores/BusinessDeliveryZoneDetails/index.js +22 -1
- package/_modules/components/Stores/BusinessDeliveryZoneList/index.js +32 -4
- package/_modules/components/Stores/BusinessDetail/index.js +18 -1
- package/_modules/components/Stores/BusinessDetails/index.js +17 -1
- package/_modules/components/Stores/BusinessFrontLayout/index.js +8 -1
- package/_modules/components/Stores/BusinessFrontLayout/styles.js +5 -3
- package/_modules/components/Stores/BusinessMenu/index.js +58 -7
- package/_modules/components/Stores/BusinessMenuOptions/index.js +24 -3
- package/_modules/components/Stores/BusinessOrderingChannels/index.js +18 -2
- package/_modules/components/Stores/BusinessPaymentMethods/index.js +26 -2
- package/_modules/components/Stores/BusinessPlaceGroupList/index.js +183 -0
- package/_modules/components/Stores/BusinessPlaceGroupList/styles.js +66 -0
- package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +21 -1
- package/_modules/components/Stores/BusinessProductsListing/index.js +74 -22
- package/_modules/components/Stores/BusinessPromotionGeneralForm/index.js +2 -2
- package/_modules/components/Stores/BusinessSharedMenuProducts/index.js +29 -2
- package/_modules/components/Stores/BusinessSync/index.js +16 -1
- package/_modules/components/Stores/BusinessTypes/index.js +27 -4
- package/_modules/components/Stores/BusinessWalletsList/index.js +24 -1
- package/_modules/components/Stores/BusinessesListing/index.js +9 -1
- package/_modules/components/Stores/ImportersButton/index.js +19 -6
- package/_modules/components/Stores/PaymentOption/index.js +29 -9
- package/_modules/components/Stores/PaymentOptionMethods/index.js +23 -3
- package/_modules/components/Stores/PaymentOptionPaypal/index.js +23 -3
- package/_modules/components/Stores/PaymentOptionSquare/index.js +23 -3
- package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +23 -3
- package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +23 -3
- package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +23 -3
- package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +23 -3
- package/_modules/components/Stores/ProductDetails/index.js +18 -1
- package/_modules/components/Stores/ProductExtras/index.js +25 -2
- package/_modules/components/Stores/ProductIngredient/index.js +23 -1
- package/_modules/components/Stores/ProductMainDetails/index.js +18 -1
- package/_modules/components/Stores/ProductTagsList/index.js +28 -2
- package/_modules/components/Users/CustomerCashWallet/index.js +22 -2
- package/_modules/components/Users/CustomerDetails/index.js +19 -1
- package/_modules/components/Users/CustomerPointsWallet/index.js +22 -2
- package/_modules/components/Users/CustomersListing/index.js +8 -3
- package/_modules/components/Users/ProfessionalDetail/index.js +25 -1
- package/_modules/components/Users/ProfessionalListing/index.js +8 -3
- package/_modules/components/Users/UserActiveStateFilter/index.js +18 -4
- package/_modules/components/Users/UserDetails/index.js +27 -1
- package/_modules/components/Users/UsersDeleteButton/index.js +3 -2
- package/_modules/components/Users/UsersExportCSV/index.js +3 -2
- package/_modules/components/Users/UsersListing/index.js +8 -3
- package/package.json +2 -2
- package/src/components/Delivery/DeliveryUsersListing/index.js +7 -2
- package/src/components/Delivery/DriversGroupBusinesses/index.js +3 -1
- package/src/components/Delivery/DriversGroupBusinesses/styles.js +4 -0
- package/src/components/Delivery/DriversGroupDeliveryDetails/index.js +5 -2
- package/src/components/Delivery/DriversGroupDeliveryDetails/styles.js +5 -1
- package/src/components/Delivery/DriversGroupDetails/index.js +4 -1
- package/src/components/Delivery/DriversGroupGeneralForm/index.js +2 -1
- package/src/components/Delivery/DriversGroupGeneralForm/styles.js +4 -0
- package/src/components/Delivery/DriversGroupLogistics/index.js +5 -2
- package/src/components/Delivery/DriversGroupLogistics/styles.js +4 -0
- package/src/components/Delivery/DriversGroupLogs/index.js +6 -3
- package/src/components/Delivery/DriversGroupLogs/styles.js +4 -0
- package/src/components/Delivery/DriversGroupPaymethods/index.js +5 -2
- package/src/components/Delivery/DriversGroupPaymethods/styles.js +4 -0
- package/src/components/Delivery/DriversGroupsList/index.js +4 -1
- package/src/components/Delivery/DriversGroupsList/styles.js +6 -0
- package/src/components/Delivery/DriversGroupsListing/index.js +6 -2
- package/src/components/Delivery/UserAddForm/index.js +42 -3
- package/src/components/Delivery/UserAddForm/styles.js +34 -0
- package/src/components/Delivery/UserDetails/index.js +6 -4
- package/src/components/Delivery/UsersList/index.js +8 -3
- package/src/components/Delivery/UsersList/styles.js +5 -0
- package/src/components/Delivery/UsersListingHeader/index.js +5 -1
- package/src/components/Users/UsersDeleteButton/index.js +3 -2
- package/src/components/Users/UsersExportCSV/index.js +3 -2
- /package/_bundles/{ordering-ui-admin.e2a58dcc95d6a983dfc0.js.LICENSE.txt → ordering-ui-admin.761f3d55438faf70811d.js.LICENSE.txt} +0 -0
|
@@ -29,7 +29,8 @@ var UsersDeleteButtonUI = function UsersDeleteButtonUI(props) {
|
|
|
29
29
|
getCheckPassword = props.getCheckPassword,
|
|
30
30
|
selectedUsers = props.selectedUsers,
|
|
31
31
|
deleteUsersActionState = props.deleteUsersActionState,
|
|
32
|
-
handleDeleteSeveralUsers = props.handleDeleteSeveralUsers
|
|
32
|
+
handleDeleteSeveralUsers = props.handleDeleteSeveralUsers,
|
|
33
|
+
disabled = props.disabled;
|
|
33
34
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
34
35
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
35
36
|
t = _useLanguage2[1];
|
|
@@ -75,7 +76,7 @@ var UsersDeleteButtonUI = function UsersDeleteButtonUI(props) {
|
|
|
75
76
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
76
77
|
borderRadius: "5px",
|
|
77
78
|
color: "secundary",
|
|
78
|
-
disabled: !selectedUsers.length || deleteUsersActionState.loading,
|
|
79
|
+
disabled: !selectedUsers.length || deleteUsersActionState.loading || disabled,
|
|
79
80
|
onClick: function onClick() {
|
|
80
81
|
return handleModalOpen();
|
|
81
82
|
}
|
|
@@ -26,7 +26,8 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
26
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
27
|
var UsersExportCSVUI = function UsersExportCSVUI(props) {
|
|
28
28
|
var actionStatus = props.actionStatus,
|
|
29
|
-
getCSV = props.getCSV
|
|
29
|
+
getCSV = props.getCSV,
|
|
30
|
+
disabled = props.disabled;
|
|
30
31
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
31
32
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
32
33
|
t = _useLanguage2[1];
|
|
@@ -75,7 +76,7 @@ var UsersExportCSVUI = function UsersExportCSVUI(props) {
|
|
|
75
76
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.ExportContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
76
77
|
borderRadius: "5px",
|
|
77
78
|
color: "secundary",
|
|
78
|
-
disabled: actionStatus.loading,
|
|
79
|
+
disabled: actionStatus.loading || disabled,
|
|
79
80
|
onClick: function onClick() {
|
|
80
81
|
return handleCSV();
|
|
81
82
|
}
|
|
@@ -51,7 +51,6 @@ var UsersListingUI = function UsersListingUI(props) {
|
|
|
51
51
|
handleSelectedUsers = props.handleSelectedUsers,
|
|
52
52
|
deleteUsersActionState = props.deleteUsersActionState,
|
|
53
53
|
handleDeleteSeveralUsers = props.handleDeleteSeveralUsers,
|
|
54
|
-
onUserRedirect = props.onUserRedirect,
|
|
55
54
|
handleSuccessUpdate = props.handleSuccessUpdate,
|
|
56
55
|
handleSuccessAddUser = props.handleSuccessAddUser,
|
|
57
56
|
handleSuccessDeleteUser = props.handleSuccessDeleteUser,
|
|
@@ -61,6 +60,7 @@ var UsersListingUI = function UsersListingUI(props) {
|
|
|
61
60
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
62
61
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
63
62
|
t = _useLanguage2[1];
|
|
63
|
+
var history = (0, _reactRouterDom.useHistory)();
|
|
64
64
|
var query = new URLSearchParams((0, _reactRouterDom.useLocation)().search);
|
|
65
65
|
var _useState = (0, _react.useState)(null),
|
|
66
66
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -82,10 +82,12 @@ var UsersListingUI = function UsersListingUI(props) {
|
|
|
82
82
|
setIsOpenUserDetails(false);
|
|
83
83
|
setOpenUser(null);
|
|
84
84
|
setQueryId(null);
|
|
85
|
-
|
|
85
|
+
var enabled = selectedUserActiveState ? 'active' : 'inactive';
|
|
86
|
+
history.replace("".concat(location.pathname, "?enabled=").concat(enabled));
|
|
86
87
|
};
|
|
87
88
|
var handleOpenUserDetails = function handleOpenUserDetails(user) {
|
|
88
|
-
|
|
89
|
+
var enabled = selectedUserActiveState ? 'active' : 'inactive';
|
|
90
|
+
history.replace("".concat(location.pathname, "?enabled=").concat(enabled, "&id=").concat(user === null || user === void 0 ? void 0 : user.id));
|
|
89
91
|
setOpenUser(user);
|
|
90
92
|
setOpenUserAddForm(false);
|
|
91
93
|
setIsOpenUserDetails(true);
|
|
@@ -179,7 +181,10 @@ var UsersListingUI = function UsersListingUI(props) {
|
|
|
179
181
|
})));
|
|
180
182
|
};
|
|
181
183
|
var UsersListing = function UsersListing(props) {
|
|
184
|
+
var query = new URLSearchParams((0, _reactRouterDom.useLocation)().search);
|
|
185
|
+
var defaultUserActiveState = query.get('enabled') !== 'inactive';
|
|
182
186
|
var usersListingProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
187
|
+
defaultUserActiveState: defaultUserActiveState,
|
|
183
188
|
UIComponent: UsersListingUI,
|
|
184
189
|
isSearchByUserEmail: true,
|
|
185
190
|
isSearchByUserPhone: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-admin-external",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.2",
|
|
4
4
|
"description": "Ordering UI Admin Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"lodash": "^4.17.20",
|
|
84
84
|
"moment": "^2.29.1",
|
|
85
85
|
"moment-range": "^4.0.2",
|
|
86
|
-
"ordering-components-admin-external": "1.15.
|
|
86
|
+
"ordering-components-admin-external": "1.15.1",
|
|
87
87
|
"polished": "^3.6.7",
|
|
88
88
|
"prop-types": "^15.7.2",
|
|
89
89
|
"react-big-calendar": "^1.4.2",
|
|
@@ -47,7 +47,9 @@ const DeliveryUsersListingUI = (props) => {
|
|
|
47
47
|
onUserRedirect,
|
|
48
48
|
handleSuccessUpdate,
|
|
49
49
|
handleSuccessAddUser,
|
|
50
|
-
handleSuccessDeleteUser
|
|
50
|
+
handleSuccessDeleteUser,
|
|
51
|
+
actionDisabled,
|
|
52
|
+
driversGroupsState
|
|
51
53
|
} = props
|
|
52
54
|
|
|
53
55
|
const history = useHistory()
|
|
@@ -163,8 +165,8 @@ const DeliveryUsersListingUI = (props) => {
|
|
|
163
165
|
onSearch={onSearch}
|
|
164
166
|
handleDeleteSeveralUsers={handleDeleteSeveralUsers}
|
|
165
167
|
handleOpenUserAddForm={handleOpenUserAddForm}
|
|
166
|
-
|
|
167
168
|
handleOpenTour={() => handleOpenTour()}
|
|
169
|
+
actionDisabled={actionDisabled}
|
|
168
170
|
/>
|
|
169
171
|
{isShowActiveStateFilter && (
|
|
170
172
|
<UserActiveStateFilter
|
|
@@ -192,6 +194,7 @@ const DeliveryUsersListingUI = (props) => {
|
|
|
192
194
|
userDetailsId={openUser?.id || queryId}
|
|
193
195
|
handleOpenUserDetails={handleOpenUserDetails}
|
|
194
196
|
handleOpenUserAddForm={handleOpenUserAddForm}
|
|
197
|
+
actionDisabled={actionDisabled}
|
|
195
198
|
/>
|
|
196
199
|
</UsersListingContainer>
|
|
197
200
|
|
|
@@ -207,6 +210,7 @@ const DeliveryUsersListingUI = (props) => {
|
|
|
207
210
|
handleSuccessUpdate={handleSuccessUpdate}
|
|
208
211
|
handleSuccessDeleteUser={handleSuccessDeleteUser}
|
|
209
212
|
handleChangeActiveUser={handleChangeActiveUser}
|
|
213
|
+
actionDisabled={actionDisabled}
|
|
210
214
|
/>
|
|
211
215
|
)}
|
|
212
216
|
{openUserAddForm && (
|
|
@@ -222,6 +226,7 @@ const DeliveryUsersListingUI = (props) => {
|
|
|
222
226
|
handleSuccessAdd={handleSuccessAddUser}
|
|
223
227
|
onClose={() => setOpenUserAddForm(false)}
|
|
224
228
|
isTourOpen={isTourOpen}
|
|
229
|
+
driversGroupsState={driversGroupsState}
|
|
225
230
|
/>
|
|
226
231
|
</SideBar>
|
|
227
232
|
)}
|
|
@@ -25,7 +25,8 @@ export const DriversGroupBusinesses = (props) => {
|
|
|
25
25
|
handleUpdateDriversGroup,
|
|
26
26
|
handleAddDriversGroup,
|
|
27
27
|
handleSelectAllBusiness,
|
|
28
|
-
selectedBusinessIds
|
|
28
|
+
selectedBusinessIds,
|
|
29
|
+
actionDisabled
|
|
29
30
|
} = props
|
|
30
31
|
|
|
31
32
|
const [, t] = useLanguage()
|
|
@@ -56,6 +57,7 @@ export const DriversGroupBusinesses = (props) => {
|
|
|
56
57
|
<Container
|
|
57
58
|
data-tour='tour_select_business'
|
|
58
59
|
onSubmit={handleSubmit(onSubmit)}
|
|
60
|
+
disabled={actionDisabled}
|
|
59
61
|
>
|
|
60
62
|
<SearchBarWrapper>
|
|
61
63
|
<SearchBar
|
|
@@ -25,7 +25,8 @@ const DriverGroupDeliveryDetailsUI = (props) => {
|
|
|
25
25
|
zoneList,
|
|
26
26
|
setZoneList,
|
|
27
27
|
setIsOpenDetails,
|
|
28
|
-
isOpenDetails
|
|
28
|
+
isOpenDetails,
|
|
29
|
+
actionDisabled
|
|
29
30
|
} = props
|
|
30
31
|
|
|
31
32
|
const [, t] = useLanguage()
|
|
@@ -40,7 +41,9 @@ const DriverGroupDeliveryDetailsUI = (props) => {
|
|
|
40
41
|
}, [actionState?.error])
|
|
41
42
|
|
|
42
43
|
return (
|
|
43
|
-
<Container
|
|
44
|
+
<Container
|
|
45
|
+
disabled={actionDisabled}
|
|
46
|
+
>
|
|
44
47
|
<DriverGroupDeliveryZoneList
|
|
45
48
|
setZoneList={setZoneList}
|
|
46
49
|
handleParentSidebarMove={handleParentSidebarMove}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
2
|
|
|
3
3
|
export const Container = styled.div`
|
|
4
4
|
height: calc(100% - 130px);
|
|
5
|
+
${({ disabled }) => disabled && css`
|
|
6
|
+
opacity: 0.7;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
`}
|
|
5
9
|
> button {
|
|
6
10
|
position: sticky;
|
|
7
11
|
top: 100%;
|
|
@@ -35,7 +35,8 @@ const DriversGroupDetailsUI = (props) => {
|
|
|
35
35
|
handleDeleteDriversGroup,
|
|
36
36
|
handleNextTour,
|
|
37
37
|
handleUpdateDriversGroup,
|
|
38
|
-
setIsExtendExtraOpen
|
|
38
|
+
setIsExtendExtraOpen,
|
|
39
|
+
actionDisabled
|
|
39
40
|
} = props
|
|
40
41
|
|
|
41
42
|
const history = useHistory()
|
|
@@ -155,6 +156,7 @@ const DriversGroupDetailsUI = (props) => {
|
|
|
155
156
|
<Switch
|
|
156
157
|
defaultChecked={driversGroupState.driversGroup?.enabled}
|
|
157
158
|
onChange={enabled => handleUpdateDriversGroup({ enabled: enabled })}
|
|
159
|
+
disabled={actionDisabled}
|
|
158
160
|
/>
|
|
159
161
|
</div>
|
|
160
162
|
<RightHeader>
|
|
@@ -174,6 +176,7 @@ const DriversGroupDetailsUI = (props) => {
|
|
|
174
176
|
>
|
|
175
177
|
<Dropdown.Item
|
|
176
178
|
onClick={() => onDeleteGroup()}
|
|
179
|
+
disabled={actionDisabled}
|
|
177
180
|
>
|
|
178
181
|
{t('DELETE', 'Delete')}
|
|
179
182
|
</Dropdown.Item>
|
|
@@ -22,7 +22,7 @@ export const DriversGroupGeneralForm = (props) => {
|
|
|
22
22
|
setUseAdvanced,
|
|
23
23
|
handleUpdateDriversGroup,
|
|
24
24
|
handleAddDriversGroup,
|
|
25
|
-
|
|
25
|
+
actionDisabled,
|
|
26
26
|
isTourOpen,
|
|
27
27
|
handleNextClick
|
|
28
28
|
} = props
|
|
@@ -126,6 +126,7 @@ export const DriversGroupGeneralForm = (props) => {
|
|
|
126
126
|
<Container
|
|
127
127
|
data-tour='tour_fill_group'
|
|
128
128
|
onSubmit={handleSubmit(onSubmit)}
|
|
129
|
+
disabled={actionDisabled}
|
|
129
130
|
>
|
|
130
131
|
<InputWrapper>
|
|
131
132
|
<label>{t('NAME', 'Name')}</label>
|
|
@@ -23,7 +23,8 @@ export const DriversGroupLogistics = (props) => {
|
|
|
23
23
|
changesState,
|
|
24
24
|
handleChangesState,
|
|
25
25
|
handleParentSidebarMove,
|
|
26
|
-
handleUpdateDriversGroup
|
|
26
|
+
handleUpdateDriversGroup,
|
|
27
|
+
actionDisabled
|
|
27
28
|
} = props
|
|
28
29
|
|
|
29
30
|
const history = useHistory()
|
|
@@ -74,7 +75,9 @@ export const DriversGroupLogistics = (props) => {
|
|
|
74
75
|
}, [])
|
|
75
76
|
|
|
76
77
|
return (
|
|
77
|
-
<LogisticsContainer
|
|
78
|
+
<LogisticsContainer
|
|
79
|
+
disabled={actionDisabled}
|
|
80
|
+
>
|
|
78
81
|
<OrderStatusWrapper
|
|
79
82
|
onClick={() => handleChangesState({ orders_group_start_in_status: 7 })}
|
|
80
83
|
>
|
|
@@ -3,6 +3,10 @@ import styled, { css } from 'styled-components'
|
|
|
3
3
|
export const LogisticsContainer = styled.div`
|
|
4
4
|
padding: 20px 0;
|
|
5
5
|
min-height: calc(100% - 120px);
|
|
6
|
+
${({ disabled }) => disabled && css`
|
|
7
|
+
opacity: 0.7;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
`}
|
|
6
10
|
|
|
7
11
|
> button {
|
|
8
12
|
position: sticky;
|
|
@@ -18,7 +18,8 @@ const DriversGroupLogsUI = (props) => {
|
|
|
18
18
|
const {
|
|
19
19
|
logsList,
|
|
20
20
|
paginationProps,
|
|
21
|
-
getDriversGroupLogs
|
|
21
|
+
getDriversGroupLogs,
|
|
22
|
+
actionDisabled
|
|
22
23
|
} = props
|
|
23
24
|
|
|
24
25
|
const [, t] = useLanguage()
|
|
@@ -72,7 +73,9 @@ const DriversGroupLogsUI = (props) => {
|
|
|
72
73
|
|
|
73
74
|
return (
|
|
74
75
|
<>
|
|
75
|
-
<DriversGroupLogsContainer
|
|
76
|
+
<DriversGroupLogsContainer
|
|
77
|
+
disabled={actionDisabled}
|
|
78
|
+
>
|
|
76
79
|
<TableWrapper>
|
|
77
80
|
{(logsList.loading || logsList.logs.length > 0) ? (
|
|
78
81
|
<Table>
|
|
@@ -117,7 +120,7 @@ const DriversGroupLogsUI = (props) => {
|
|
|
117
120
|
</tbody>
|
|
118
121
|
))
|
|
119
122
|
) : (
|
|
120
|
-
logsList.logs
|
|
123
|
+
!logsList.error && logsList.logs?.map(log => (
|
|
121
124
|
<tbody key={log.id}>
|
|
122
125
|
<tr>
|
|
123
126
|
<td>
|
|
@@ -2,6 +2,10 @@ import styled, { css } from 'styled-components'
|
|
|
2
2
|
|
|
3
3
|
export const DriversGroupLogsContainer = styled.div`
|
|
4
4
|
height: calc(100% - 180px);
|
|
5
|
+
${({ disabled }) => disabled && css`
|
|
6
|
+
opacity: 0.7;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
`}
|
|
5
9
|
`
|
|
6
10
|
|
|
7
11
|
export const TableWrapper = styled.div`
|
|
@@ -21,7 +21,8 @@ export const DriversGroupPaymethods = (props) => {
|
|
|
21
21
|
handleUpdateDriversGroup,
|
|
22
22
|
handleAddDriversGroup,
|
|
23
23
|
handleSelectPaymethod,
|
|
24
|
-
handleSelectAllPaymethod
|
|
24
|
+
handleSelectAllPaymethod,
|
|
25
|
+
actionDisabled
|
|
25
26
|
} = props
|
|
26
27
|
const [, t] = useLanguage()
|
|
27
28
|
const [searchValue, setSearchValue] = useState(null)
|
|
@@ -39,7 +40,9 @@ export const DriversGroupPaymethods = (props) => {
|
|
|
39
40
|
|
|
40
41
|
return (
|
|
41
42
|
<>
|
|
42
|
-
<Container
|
|
43
|
+
<Container
|
|
44
|
+
disabled={actionDisabled}
|
|
45
|
+
>
|
|
43
46
|
<SearchBarWrapper>
|
|
44
47
|
<SearchBar
|
|
45
48
|
placeholder={t('SEARCH', 'Search')}
|
|
@@ -34,7 +34,8 @@ export const DriversGroupsList = (props) => {
|
|
|
34
34
|
selectedGroupList,
|
|
35
35
|
isFromStore,
|
|
36
36
|
handleSelectGroup,
|
|
37
|
-
handleAllSelectGroup
|
|
37
|
+
handleAllSelectGroup,
|
|
38
|
+
actionDisabled
|
|
38
39
|
} = props
|
|
39
40
|
|
|
40
41
|
const [, t] = useLanguage()
|
|
@@ -218,6 +219,7 @@ export const DriversGroupsList = (props) => {
|
|
|
218
219
|
<EnableWrapper className='group-enabled'>
|
|
219
220
|
<span>{t('ENABLE', 'Enable')}</span>
|
|
220
221
|
<Switch
|
|
222
|
+
disabled={actionDisabled}
|
|
221
223
|
defaultChecked={group?.enabled}
|
|
222
224
|
onChange={enabled => handleUpdateDriversGroup?.(group.id, { enabled: enabled })}
|
|
223
225
|
/>
|
|
@@ -235,6 +237,7 @@ export const DriversGroupsList = (props) => {
|
|
|
235
237
|
{!isFromStore && (
|
|
236
238
|
<AddNewGroupButton
|
|
237
239
|
onClick={() => handleOpenDetails(null)}
|
|
240
|
+
disabled={actionDisabled}
|
|
238
241
|
>
|
|
239
242
|
{t('ADD_NEW_DRIVER_GROUP', 'Add new driver group')}
|
|
240
243
|
</AddNewGroupButton>
|
|
@@ -222,4 +222,10 @@ export const AddNewGroupButton = styled.div`
|
|
|
222
222
|
cursor: pointer;
|
|
223
223
|
font-size: 12px;
|
|
224
224
|
color: ${props => props.theme.colors.primary};
|
|
225
|
+
|
|
226
|
+
${({ disabled }) => disabled && css`
|
|
227
|
+
opacity: 0.5;
|
|
228
|
+
cursor: not-allowed;
|
|
229
|
+
pointer-events: none;
|
|
230
|
+
`}
|
|
225
231
|
`
|
|
@@ -33,7 +33,8 @@ const DriversGroupsListingUI = (props) => {
|
|
|
33
33
|
actionState,
|
|
34
34
|
handleUpdateDriversGroup,
|
|
35
35
|
handleDeleteDriversGroup,
|
|
36
|
-
driversCompanyList
|
|
36
|
+
driversCompanyList,
|
|
37
|
+
actionDisabled
|
|
37
38
|
} = props
|
|
38
39
|
|
|
39
40
|
const history = useHistory()
|
|
@@ -170,13 +171,14 @@ const DriversGroupsListingUI = (props) => {
|
|
|
170
171
|
color='lightPrimary'
|
|
171
172
|
data-tour='tour_add_group'
|
|
172
173
|
onClick={() => handleOpenDetails(null)}
|
|
174
|
+
disabled={actionDisabled}
|
|
173
175
|
>
|
|
174
176
|
{t('ADD_DRIVER_GROUP', 'Add driver group')}
|
|
175
177
|
</Button>
|
|
176
178
|
<Button
|
|
177
179
|
borderRadius='8px'
|
|
178
180
|
color='secundary'
|
|
179
|
-
disabled={selectedGroupList.length === 0}
|
|
181
|
+
disabled={selectedGroupList.length === 0 || actionDisabled}
|
|
180
182
|
onClick={() => onClickSelectedGroupsDelete()}
|
|
181
183
|
>
|
|
182
184
|
{t('DELETE', 'Delete')}
|
|
@@ -199,6 +201,7 @@ const DriversGroupsListingUI = (props) => {
|
|
|
199
201
|
selectedGroupList={selectedGroupList}
|
|
200
202
|
handleSelectGroup={handleSelectGroup}
|
|
201
203
|
handleAllSelectGroup={handleAllSelectGroup}
|
|
204
|
+
actionDisabled={actionDisabled}
|
|
202
205
|
/>
|
|
203
206
|
</DriversGroupsListingContainer>
|
|
204
207
|
{openDetails && (
|
|
@@ -232,6 +235,7 @@ const DriversGroupsListingUI = (props) => {
|
|
|
232
235
|
}}
|
|
233
236
|
isTourOpen={isTourOpen}
|
|
234
237
|
handleNextTour={handleNextTour}
|
|
238
|
+
actionDisabled={actionDisabled}
|
|
235
239
|
/>
|
|
236
240
|
</SideBar>
|
|
237
241
|
)}
|
|
@@ -2,6 +2,7 @@ import React, { useState, useEffect, useRef } from 'react'
|
|
|
2
2
|
import { useForm } from 'react-hook-form'
|
|
3
3
|
import {
|
|
4
4
|
useLanguage,
|
|
5
|
+
useSession,
|
|
5
6
|
useEvent,
|
|
6
7
|
DragAndDrop,
|
|
7
8
|
ExamineClick,
|
|
@@ -14,6 +15,8 @@ import parsePhoneNumber from 'libphonenumber-js'
|
|
|
14
15
|
import Skeleton from 'react-loading-skeleton'
|
|
15
16
|
import BiImage from '@meronex/icons/bi/BiImage'
|
|
16
17
|
import { useWindowSize } from '../../../hooks/useWindowSize'
|
|
18
|
+
import MdCheckBoxOutlineBlank from '@meronex/icons/md/MdCheckBoxOutlineBlank'
|
|
19
|
+
import MdCheckBox from '@meronex/icons/md/MdCheckBox'
|
|
17
20
|
|
|
18
21
|
import {
|
|
19
22
|
FormContainer,
|
|
@@ -25,7 +28,10 @@ import {
|
|
|
25
28
|
FormInput,
|
|
26
29
|
ActionsForm,
|
|
27
30
|
SkeletonForm,
|
|
28
|
-
MainInformationContainer
|
|
31
|
+
MainInformationContainer,
|
|
32
|
+
DriverGroupListContainer,
|
|
33
|
+
DriverGroupItem,
|
|
34
|
+
CheckboxWrapper
|
|
29
35
|
} from './styles'
|
|
30
36
|
|
|
31
37
|
const UserAddFormUI = (props) => {
|
|
@@ -42,13 +48,16 @@ const UserAddFormUI = (props) => {
|
|
|
42
48
|
isDriversPage,
|
|
43
49
|
isDriversManagersPage,
|
|
44
50
|
handleChangeSwtich,
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
isTourOpen,
|
|
52
|
+
driversGroupsState,
|
|
53
|
+
selectedDriverGroupIds,
|
|
54
|
+
handleDriverGroupClick
|
|
47
55
|
} = props
|
|
48
56
|
const formMethods = useForm()
|
|
49
57
|
const [, t] = useLanguage()
|
|
50
58
|
const [events] = useEvent()
|
|
51
59
|
const { width } = useWindowSize()
|
|
60
|
+
const [session] = useSession()
|
|
52
61
|
|
|
53
62
|
const [isValidPhoneNumber, setIsValidPhoneNumber] = useState(null)
|
|
54
63
|
const [userPhoneNumber, setUserPhoneNumber] = useState(null)
|
|
@@ -349,6 +358,36 @@ const UserAddFormUI = (props) => {
|
|
|
349
358
|
props.afterMidComponents?.map((MidComponent, i) => (
|
|
350
359
|
<MidComponent key={i} {...props} />))
|
|
351
360
|
}
|
|
361
|
+
{isDriversPage && session?.user?.level === 5 && (
|
|
362
|
+
<DriverGroupListContainer>
|
|
363
|
+
{driversGroupsState.loading ? (
|
|
364
|
+
[...Array(10).keys()].map(i => (
|
|
365
|
+
<DriverGroupItem key={i}>
|
|
366
|
+
<Skeleton width={20} height={20} />
|
|
367
|
+
<Skeleton width={100} />
|
|
368
|
+
</DriverGroupItem>
|
|
369
|
+
))
|
|
370
|
+
) : (
|
|
371
|
+
driversGroupsState.groups.map(group => (
|
|
372
|
+
<DriverGroupItem
|
|
373
|
+
key={group.id}
|
|
374
|
+
onClick={() => handleDriverGroupClick(group.id)}
|
|
375
|
+
>
|
|
376
|
+
<CheckboxWrapper
|
|
377
|
+
active={selectedDriverGroupIds.includes(group.id)}
|
|
378
|
+
>
|
|
379
|
+
{selectedDriverGroupIds.includes(group.id) ? (
|
|
380
|
+
<MdCheckBox />
|
|
381
|
+
) : (
|
|
382
|
+
<MdCheckBoxOutlineBlank />
|
|
383
|
+
)}
|
|
384
|
+
</CheckboxWrapper>
|
|
385
|
+
<span>{group?.name}</span>
|
|
386
|
+
</DriverGroupItem>
|
|
387
|
+
))
|
|
388
|
+
)}
|
|
389
|
+
</DriverGroupListContainer>
|
|
390
|
+
)}
|
|
352
391
|
<ActionsForm>
|
|
353
392
|
<Button
|
|
354
393
|
color='primary'
|
|
@@ -188,3 +188,37 @@ export const SkeletonForm = styled.div`
|
|
|
188
188
|
export const MainInformationContainer = styled.div`
|
|
189
189
|
flex: 1;
|
|
190
190
|
`
|
|
191
|
+
|
|
192
|
+
export const DriverGroupListContainer = styled.div`
|
|
193
|
+
margin: 15px 0;
|
|
194
|
+
`
|
|
195
|
+
|
|
196
|
+
export const DriverGroupItem = styled.div`
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
border-bottom: 1px solid ${props => props.theme.colors.borderColor};
|
|
200
|
+
padding: 12px 0;
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
|
|
203
|
+
> span {
|
|
204
|
+
font-size: 14px;
|
|
205
|
+
${props => props.theme?.rtl ? css`
|
|
206
|
+
margin-right: 15px;
|
|
207
|
+
` : css`
|
|
208
|
+
margin-left: 15px;
|
|
209
|
+
`}
|
|
210
|
+
}
|
|
211
|
+
`
|
|
212
|
+
|
|
213
|
+
export const CheckboxWrapper = styled.div`
|
|
214
|
+
svg {
|
|
215
|
+
font-size: 20px;
|
|
216
|
+
color: ${props => props.theme.colors.lightGray};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
${({ active }) => active && css`
|
|
220
|
+
svg {
|
|
221
|
+
color: ${props => props.theme.colors.primary};
|
|
222
|
+
}
|
|
223
|
+
`}
|
|
224
|
+
`
|
|
@@ -36,7 +36,8 @@ export const UserDetailsUI = (props) => {
|
|
|
36
36
|
handleChangeActiveUser,
|
|
37
37
|
scheduleState,
|
|
38
38
|
handleScheduleState,
|
|
39
|
-
handleScheduleUpdateUser
|
|
39
|
+
handleScheduleUpdateUser,
|
|
40
|
+
actionDisabled
|
|
40
41
|
} = props
|
|
41
42
|
|
|
42
43
|
const history = useHistory()
|
|
@@ -98,6 +99,7 @@ export const UserDetailsUI = (props) => {
|
|
|
98
99
|
<>
|
|
99
100
|
{handleChangeActiveUser && (
|
|
100
101
|
<Switch
|
|
102
|
+
disabled={actionDisabled}
|
|
101
103
|
defaultChecked={userState?.user?.enabled || false}
|
|
102
104
|
onChange={enabled => handleChangeActiveUser({ id: userState?.user?.id, enabled: enabled })}
|
|
103
105
|
/>
|
|
@@ -121,13 +123,13 @@ export const UserDetailsUI = (props) => {
|
|
|
121
123
|
title={<ThreeDots />}
|
|
122
124
|
id={theme?.rtl ? 'dropdown-menu-align-left' : 'dropdown-menu-align-right'}
|
|
123
125
|
>
|
|
124
|
-
<Dropdown.Item onClick={() => setIsCustomField(true)}>
|
|
126
|
+
<Dropdown.Item onClick={() => setIsCustomField(true)} disabled={actionDisabled}>
|
|
125
127
|
{t('CUSTOM_FIELDS', 'Custom fields')}
|
|
126
128
|
</Dropdown.Item>
|
|
127
|
-
<Dropdown.Item onClick={() => setIsPersonalization(true)}>
|
|
129
|
+
<Dropdown.Item onClick={() => setIsPersonalization(true)} disabled={actionDisabled}>
|
|
128
130
|
{t('PERSONALIZATION', 'Personalization')}
|
|
129
131
|
</Dropdown.Item>
|
|
130
|
-
<Dropdown.Item onClick={() => handleDeleteUser(userState.user?.id)}>
|
|
132
|
+
<Dropdown.Item onClick={() => handleDeleteUser(userState.user?.id)} disabled={actionDisabled}>
|
|
131
133
|
{t('DELETE', 'Delete')}
|
|
132
134
|
</Dropdown.Item>
|
|
133
135
|
</DropdownButton>
|
|
@@ -41,7 +41,8 @@ export const UsersList = (props) => {
|
|
|
41
41
|
handleOpenUserDetails,
|
|
42
42
|
handleOpenUserAddForm,
|
|
43
43
|
isDriversPage,
|
|
44
|
-
isDriversManagersPage
|
|
44
|
+
isDriversManagersPage,
|
|
45
|
+
actionDisabled
|
|
45
46
|
} = props
|
|
46
47
|
|
|
47
48
|
const [, t] = useLanguage()
|
|
@@ -123,7 +124,7 @@ export const UsersList = (props) => {
|
|
|
123
124
|
<th>{t('USER', 'User')}</th>
|
|
124
125
|
<th>{t('DETAILS', 'Details')}</th>
|
|
125
126
|
<th />
|
|
126
|
-
<th
|
|
127
|
+
<th colSpan={2}>{t('ACTION', 'Action')}</th>
|
|
127
128
|
</tr>
|
|
128
129
|
</thead>
|
|
129
130
|
{usersList.loading ? (
|
|
@@ -238,6 +239,7 @@ export const UsersList = (props) => {
|
|
|
238
239
|
<UserEnableWrapper className='user_enable_control'>
|
|
239
240
|
<span>{t('ENABLE', 'Enable')}</span>
|
|
240
241
|
<Switch
|
|
242
|
+
disabled={actionDisabled}
|
|
241
243
|
notAsync={user.level === 0}
|
|
242
244
|
defaultChecked={user?.enabled}
|
|
243
245
|
onChange={enabled => handleEnable(user, enabled)}
|
|
@@ -251,7 +253,10 @@ export const UsersList = (props) => {
|
|
|
251
253
|
</UsersTable>
|
|
252
254
|
</UserTableWrapper>
|
|
253
255
|
<UsersBottomContainer>
|
|
254
|
-
<AddNewUserButton
|
|
256
|
+
<AddNewUserButton
|
|
257
|
+
onClick={() => handleOpenUserAddForm()}
|
|
258
|
+
disabled={actionDisabled}
|
|
259
|
+
>
|
|
255
260
|
{
|
|
256
261
|
isDriversPage
|
|
257
262
|
? t('ADD_NEW_DRIVER', 'Add new driver')
|
|
@@ -214,6 +214,11 @@ export const AddNewUserButton = styled.div`
|
|
|
214
214
|
color: ${props => props.theme.colors.primary};
|
|
215
215
|
width: fit-content;
|
|
216
216
|
font-size: 14px;
|
|
217
|
+
|
|
218
|
+
${({ disabled }) => disabled && css`
|
|
219
|
+
opacity: 0.5;
|
|
220
|
+
pointer-events: none;
|
|
221
|
+
`}
|
|
217
222
|
`
|
|
218
223
|
|
|
219
224
|
export const UsersBottomContainer = styled.div`
|