ordering-ui-admin-external 1.3.2 → 1.3.4

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.
Files changed (65) hide show
  1. package/_bundles/{ordering-ui-admin.6adfe91f3f26eaebf7f8.js → ordering-ui-admin.6bc955840a487dfb9117.js} +2 -2
  2. package/_bundles/{ordering-ui-admin.6adfe91f3f26eaebf7f8.js.LICENSE.txt → ordering-ui-admin.6bc955840a487dfb9117.js.LICENSE.txt} +0 -0
  3. package/_modules/components/BusinessIntelligence/Reports/index.js +3 -27
  4. package/_modules/components/BusinessIntelligence/Reports/styles.js +2 -9
  5. package/_modules/components/Loyalty/RewardsPrograms/index.js +12 -38
  6. package/_modules/components/Loyalty/RewardsPrograms/styles.js +6 -13
  7. package/_modules/components/Marketing/CampaignHeader/index.js +2 -5
  8. package/_modules/components/Marketing/CampaignHeader/styles.js +4 -7
  9. package/_modules/components/Marketing/CampaignList/index.js +4 -8
  10. package/_modules/components/Marketing/CampaignList/styles.js +22 -30
  11. package/_modules/components/Marketing/CampaignListing/index.js +3 -29
  12. package/_modules/components/Settings/PluginList/index.js +31 -1
  13. package/_modules/components/Settings/SettingsDetail/index.js +3 -40
  14. package/_modules/components/Settings/SettingsDetail/styles.js +13 -26
  15. package/_modules/components/Settings/SettingsList/index.js +6 -43
  16. package/_modules/components/SidebarMenu/index.js +17 -20
  17. package/_modules/components/Stores/BusinessMenu/index.js +5 -36
  18. package/_modules/components/Stores/BusinessMenu/styles.js +19 -27
  19. package/_modules/components/Stores/BusinessPaymentMethods/index.js +16 -53
  20. package/_modules/components/Stores/BusinessProductAddForm/index.js +4 -2
  21. package/_modules/components/Stores/BusinessesListingHeader/index.js +7 -1
  22. package/_modules/components/Stores/ImportersList/index.js +2 -5
  23. package/_modules/components/Stores/ImportersList/styles.js +15 -18
  24. package/_modules/components/Stores/ImportersListing/index.js +4 -31
  25. package/_modules/components/Stores/PaymentOption/index.js +7 -12
  26. package/_modules/components/Stores/PaymentOptionMethods/index.js +4 -9
  27. package/_modules/components/Stores/PaymentOptionPaypal/index.js +4 -9
  28. package/_modules/components/Stores/PaymentOptionSquare/index.js +4 -9
  29. package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +5 -10
  30. package/_modules/components/Stores/PaymentOptionStripeDirect/styles.js +5 -10
  31. package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +4 -9
  32. package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +4 -9
  33. package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +4 -9
  34. package/package.json +1 -1
  35. package/src/components/BusinessIntelligence/Reports/index.js +4 -18
  36. package/src/components/BusinessIntelligence/Reports/styles.js +0 -11
  37. package/src/components/Loyalty/RewardsPrograms/index.js +5 -18
  38. package/src/components/Loyalty/RewardsPrograms/styles.js +0 -10
  39. package/src/components/Marketing/CampaignHeader/index.js +2 -3
  40. package/src/components/Marketing/CampaignHeader/styles.js +0 -8
  41. package/src/components/Marketing/CampaignList/index.js +3 -5
  42. package/src/components/Marketing/CampaignList/styles.js +0 -16
  43. package/src/components/Marketing/CampaignListing/index.js +2 -18
  44. package/src/components/Settings/PluginList/index.js +2 -2
  45. package/src/components/Settings/SettingsDetail/index.js +2 -23
  46. package/src/components/Settings/SettingsDetail/styles.js +13 -8
  47. package/src/components/Settings/SettingsList/index.js +1 -24
  48. package/src/components/SidebarMenu/index.js +17 -17
  49. package/src/components/Stores/BusinessMenu/index.js +3 -21
  50. package/src/components/Stores/BusinessMenu/styles.js +0 -15
  51. package/src/components/Stores/BusinessPaymentMethods/index.js +32 -62
  52. package/src/components/Stores/BusinessProductAddForm/index.js +1 -1
  53. package/src/components/Stores/BusinessesListingHeader/index.js +2 -2
  54. package/src/components/Stores/ImportersList/index.js +2 -3
  55. package/src/components/Stores/ImportersList/styles.js +1 -9
  56. package/src/components/Stores/ImportersListing/index.js +0 -19
  57. package/src/components/Stores/PaymentOption/index.js +4 -9
  58. package/src/components/Stores/PaymentOptionMethods/index.js +3 -8
  59. package/src/components/Stores/PaymentOptionPaypal/index.js +3 -8
  60. package/src/components/Stores/PaymentOptionSquare/index.js +3 -8
  61. package/src/components/Stores/PaymentOptionStripeDirect/index.js +3 -8
  62. package/src/components/Stores/PaymentOptionStripeDirect/styles.js +0 -8
  63. package/src/components/Stores/PaymethodOptionPaypalExpress/index.js +3 -8
  64. package/src/components/Stores/PaymethodOptionStripeConnect/index.js +3 -8
  65. package/src/components/Stores/PaymethodOptionStripeRedirect/index.js +3 -8
@@ -1,8 +1,6 @@
1
1
  import React, { useState, useEffect } from 'react'
2
2
  import {
3
3
  useLanguage,
4
- useConfig,
5
- useSession,
6
4
  ImporterListing as ImportersListingController
7
5
  } from 'ordering-components-admin-external'
8
6
 
@@ -13,7 +11,6 @@ import { ImporterForm } from '../ImporterForm'
13
11
  import { ImporterJobForm } from '../ImporterJobForm'
14
12
  import { ImporterHelpContent } from '../ImporterHelpContent'
15
13
  import { SideBar, Modal } from '../../Shared'
16
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
17
14
 
18
15
  import {
19
16
  ImportersListingContainer,
@@ -33,9 +30,6 @@ export const ImportersListingUI = (props) => {
33
30
  handleSuccessUpdateImporter
34
31
  } = props
35
32
  const [, t] = useLanguage()
36
- const [{ configs }] = useConfig()
37
- const [{ user }] = useSession()
38
- const featureName = 'massive_importer'
39
33
  const [openNewImporter, setOpenNewImporter] = useState(false)
40
34
  const [openImporterHelp, setOpenImporterHelp] = useState(false)
41
35
  const [openImportCsv, setOpenImportCsv] = useState(false)
@@ -43,7 +37,6 @@ export const ImportersListingUI = (props) => {
43
37
  const [selectedImporterJob, setSelectedImporterJob] = useState({})
44
38
  const [importJobFormMoveDistance, setImportJobFormMoveDistance] = useState(0)
45
39
  const [openMappingDetails, setOpenMappingDetails] = useState(false)
46
- const [isDisabledFeature, setIsDisabledFeature] = useState(false)
47
40
 
48
41
  const addNewImporter = () => {
49
42
  setSelectedImporter({})
@@ -70,14 +63,6 @@ export const ImportersListingUI = (props) => {
70
63
  setExtraOpen && setExtraOpen(openNewImporter)
71
64
  }, [openNewImporter])
72
65
 
73
- useEffect(() => {
74
- if (configs && Object.keys(configs).length > 0 && user) {
75
- if (!Object.keys(configs).includes(featureName) && user?.level === 0) {
76
- setIsDisabledFeature(true)
77
- }
78
- }
79
- }, [configs])
80
-
81
66
  return (
82
67
  <>
83
68
  <ImportersListingContainer>
@@ -87,7 +72,6 @@ export const ImportersListingUI = (props) => {
87
72
  <IconButton
88
73
  color='primary'
89
74
  onClick={() => setOpenImporterHelp(true)}
90
- disabled={isDisabledFeature}
91
75
  >
92
76
  <InfoCircle />
93
77
  </IconButton>
@@ -97,7 +81,6 @@ export const ImportersListingUI = (props) => {
97
81
  color='lightPrimary'
98
82
  borderRadius='5px'
99
83
  onClick={() => addNewImporter()}
100
- disabled={isDisabledFeature}
101
84
  >
102
85
  {t('ADD_IMPORTER', 'Add importer')}
103
86
  </Button>
@@ -112,9 +95,7 @@ export const ImportersListingUI = (props) => {
112
95
  selectedImporter={selectedImporter}
113
96
  setSelectedImporter={setSelectedImporter}
114
97
  handleEditImporter={handleEditImporter}
115
- isDisabledFeature={isDisabledFeature}
116
98
  />
117
- {isDisabledFeature && (<DisabledFeatureAlert />)}
118
99
  {openNewImporter && (
119
100
  <SideBar
120
101
  isBorderShow={!openMappingDetails}
@@ -9,7 +9,6 @@ import { useTheme } from 'styled-components'
9
9
  import { ThreeDots, XLg } from 'react-bootstrap-icons'
10
10
  import { Dropdown, DropdownButton } from 'react-bootstrap'
11
11
  import { Confirm } from '../../Shared'
12
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
13
12
 
14
13
  import {
15
14
  Container,
@@ -32,8 +31,7 @@ export const PaymentOption = (props) => {
32
31
  actionState,
33
32
  handleSaveClick,
34
33
  businessPaymethod,
35
- handleDeletePaymethod,
36
- isDisabledFeature
34
+ handleDeletePaymethod
37
35
  } = props
38
36
 
39
37
  const theme = useTheme()
@@ -153,8 +151,7 @@ export const PaymentOption = (props) => {
153
151
  sitesState?.sites.map(site => (
154
152
  <TabOption
155
153
  key={site.id}
156
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
157
- isDisabledFeature={isDisabledFeature}
154
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
158
155
  >
159
156
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
160
157
  <RiCheckboxFill className='fill' />
@@ -170,8 +167,7 @@ export const PaymentOption = (props) => {
170
167
  orderTypes.map(type => (
171
168
  <TabOption
172
169
  key={type.value}
173
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
174
- isDisabledFeature={isDisabledFeature}
170
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
175
171
  >
176
172
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
177
173
  <RiCheckboxFill className='fill' />
@@ -186,13 +182,12 @@ export const PaymentOption = (props) => {
186
182
  <Button
187
183
  borderRadius='5px'
188
184
  color='primary'
189
- disabled={isDisabledFeature || actionState.loading || Object.keys(changesState).length === 0}
185
+ disabled={actionState.loading || Object.keys(changesState).length === 0}
190
186
  onClick={() => handleSaveClick(businessPaymethod.id)}
191
187
  >
192
188
  {actionState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
193
189
  </Button>
194
190
  </Container>
195
- {isDisabledFeature && (<DisabledFeatureAlert />)}
196
191
  <Confirm
197
192
  width='700px'
198
193
  title={t('WEB_APPNAME', 'Ordering')}
@@ -8,7 +8,6 @@ import { useTheme } from 'styled-components'
8
8
  import { ThreeDots, XLg } from 'react-bootstrap-icons'
9
9
  import { Dropdown, DropdownButton } from 'react-bootstrap'
10
10
  import { Confirm } from '../../Shared'
11
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
12
11
 
13
12
  import {
14
13
  Container,
@@ -38,8 +37,7 @@ export const PaymentOptionMethods = (props) => {
38
37
  businessPaymethod,
39
38
  handleDeletePaymethod,
40
39
  id,
41
- title,
42
- isDisabledFeature
40
+ title
43
41
  } = props
44
42
 
45
43
  const theme = useTheme()
@@ -225,8 +223,7 @@ export const PaymentOptionMethods = (props) => {
225
223
  sitesState?.sites.map(site => (
226
224
  <TabOption
227
225
  key={site.id}
228
- isDisabledFeature={isDisabledFeature}
229
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
226
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
230
227
  >
231
228
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
232
229
  <RiCheckboxFill className='fill' />
@@ -242,8 +239,7 @@ export const PaymentOptionMethods = (props) => {
242
239
  orderTypes.map(type => (
243
240
  <TabOption
244
241
  key={type.value}
245
- isDisabledFeature={isDisabledFeature}
246
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
242
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
247
243
  >
248
244
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
249
245
  <RiCheckboxFill className='fill' />
@@ -264,7 +260,6 @@ export const PaymentOptionMethods = (props) => {
264
260
  {actionState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
265
261
  </Button>
266
262
  </Container>
267
- {(isDisabledFeature && (paymentTabs === 1 || paymentTabs === 2)) && (<DisabledFeatureAlert />)}
268
263
  <Confirm
269
264
  width='700px'
270
265
  title={t('WEB_APPNAME', 'Ordering')}
@@ -8,7 +8,6 @@ import { useTheme } from 'styled-components'
8
8
  import { ThreeDots, XLg } from 'react-bootstrap-icons'
9
9
  import { Dropdown, DropdownButton } from 'react-bootstrap'
10
10
  import { Confirm } from '../../Shared'
11
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
12
11
 
13
12
  import {
14
13
  Container,
@@ -36,8 +35,7 @@ export const PaymentOptionPaypal = (props) => {
36
35
  handleSaveClick,
37
36
  businessPaymethod,
38
37
  handleChangeBusinessPaymentState,
39
- handleDeletePaymethod,
40
- isDisabledFeature
38
+ handleDeletePaymethod
41
39
  } = props
42
40
 
43
41
  const theme = useTheme()
@@ -225,8 +223,7 @@ export const PaymentOptionPaypal = (props) => {
225
223
  sitesState?.sites.map(site => (
226
224
  <TabOption
227
225
  key={site.id}
228
- isDisabledFeature={isDisabledFeature}
229
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
226
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
230
227
  >
231
228
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
232
229
  <RiCheckboxFill className='fill' />
@@ -242,8 +239,7 @@ export const PaymentOptionPaypal = (props) => {
242
239
  orderTypes.map(type => (
243
240
  <TabOption
244
241
  key={type.value}
245
- isDisabledFeature={isDisabledFeature}
246
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
242
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
247
243
  >
248
244
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
249
245
  <RiCheckboxFill className='fill' />
@@ -264,7 +260,6 @@ export const PaymentOptionPaypal = (props) => {
264
260
  {actionState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
265
261
  </Button>
266
262
  </Container>
267
- {(isDisabledFeature && (paymentTabs === 1 || paymentTabs === 2)) && (<DisabledFeatureAlert />)}
268
263
  <Confirm
269
264
  width='700px'
270
265
  title={t('WEB_APPNAME', 'Ordering')}
@@ -11,7 +11,6 @@ import { TabOption, TabOptionName } from '../PaymentOptionStripeDirect/styles'
11
11
  import RiCheckboxBlankLine from '@meronex/icons/ri/RiCheckboxBlankLine'
12
12
  import RiCheckboxFill from '@meronex/icons/ri/RiCheckboxFill'
13
13
  import SiSquare from '@meronex/icons/si/SiSquare'
14
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
15
14
 
16
15
  import {
17
16
  Container,
@@ -41,8 +40,7 @@ const PaymentOptionSquareUI = (props) => {
41
40
  handleSavePaymethod,
42
41
  handleChangeDataInput,
43
42
  handleChangeSanboxDataInput,
44
- handleChangeSandbox,
45
- isDisabledFeature
43
+ handleChangeSandbox
46
44
  } = props
47
45
 
48
46
  const theme = useTheme()
@@ -249,8 +247,7 @@ const PaymentOptionSquareUI = (props) => {
249
247
  sitesState?.sites.map(site => (
250
248
  <TabOption
251
249
  key={site.id}
252
- isDisabledFeature={isDisabledFeature}
253
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
250
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
254
251
  >
255
252
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
256
253
  <RiCheckboxFill className='fill' />
@@ -265,8 +262,7 @@ const PaymentOptionSquareUI = (props) => {
265
262
  orderTypes.map(type => (
266
263
  <TabOption
267
264
  key={type.value}
268
- isDisabledFeature={isDisabledFeature}
269
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
265
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
270
266
  >
271
267
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
272
268
  <RiCheckboxFill className='fill' />
@@ -299,7 +295,6 @@ const PaymentOptionSquareUI = (props) => {
299
295
  closeOnBackdrop={false}
300
296
  />
301
297
  </Container>
302
- {(isDisabledFeature && (paymentTabs === 1 || paymentTabs === 2)) && (<DisabledFeatureAlert />)}
303
298
  </>
304
299
  )
305
300
  }
@@ -8,7 +8,6 @@ import { useTheme } from 'styled-components'
8
8
  import { ThreeDots, XLg } from 'react-bootstrap-icons'
9
9
  import { Dropdown, DropdownButton } from 'react-bootstrap'
10
10
  import { Confirm } from '../../Shared'
11
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
12
11
 
13
12
  import {
14
13
  Container,
@@ -36,8 +35,7 @@ export const PaymentOptionStripeDirect = (props) => {
36
35
  handleChangeInput,
37
36
  handleSaveClick,
38
37
  businessPaymethod,
39
- handleDeletePaymethod,
40
- isDisabledFeature
38
+ handleDeletePaymethod
41
39
  } = props
42
40
 
43
41
  const theme = useTheme()
@@ -223,8 +221,7 @@ export const PaymentOptionStripeDirect = (props) => {
223
221
  sitesState?.sites.map(site => (
224
222
  <TabOption
225
223
  key={site.id}
226
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
227
- isDisabledFeature={isDisabledFeature}
224
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
228
225
  >
229
226
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
230
227
  <RiCheckboxFill className='fill' />
@@ -240,8 +237,7 @@ export const PaymentOptionStripeDirect = (props) => {
240
237
  orderTypes.map(type => (
241
238
  <TabOption
242
239
  key={type.value}
243
- isDisabledFeature={isDisabledFeature}
244
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
240
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
245
241
  >
246
242
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
247
243
  <RiCheckboxFill className='fill' />
@@ -262,7 +258,6 @@ export const PaymentOptionStripeDirect = (props) => {
262
258
  {actionState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
263
259
  </Button>
264
260
  </Container>
265
- {(isDisabledFeature && (paymentTabs === 1 || paymentTabs === 2)) && (<DisabledFeatureAlert />)}
266
261
  <Confirm
267
262
  width='700px'
268
263
  title={t('WEB_APPNAME', 'Ordering')}
@@ -89,14 +89,6 @@ export const TabOption = styled.div`
89
89
  color: ${props => props.theme.colors.primary};
90
90
  }
91
91
  }
92
-
93
- ${({ isDisabledFeature }) => isDisabledFeature && css`
94
- cursor: not-allowed;
95
- opacity: 0.4;
96
- &:hover {
97
- background-color: ${props => props.theme.colors.white};
98
- }
99
- `}
100
92
  `
101
93
 
102
94
  export const TabOptionName = styled.span`
@@ -8,7 +8,6 @@ import { useTheme } from 'styled-components'
8
8
  import { ThreeDots, XLg } from 'react-bootstrap-icons'
9
9
  import { Dropdown, DropdownButton } from 'react-bootstrap'
10
10
  import { Confirm } from '../../Shared'
11
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
12
11
 
13
12
  import {
14
13
  Container,
@@ -36,8 +35,7 @@ export const PaymethodOptionPaypalExpress = (props) => {
36
35
  businessPaymethod,
37
36
  orderTypes,
38
37
  handleChangeBusinessPaymentState,
39
- handleDeletePaymethod,
40
- isDisabledFeature
38
+ handleDeletePaymethod
41
39
  } = props
42
40
 
43
41
  const theme = useTheme()
@@ -205,8 +203,7 @@ export const PaymethodOptionPaypalExpress = (props) => {
205
203
  sitesState?.sites.map(site => (
206
204
  <TabOption
207
205
  key={site.id}
208
- isDisabledFeature={isDisabledFeature}
209
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
206
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
210
207
  >
211
208
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
212
209
  <RiCheckboxFill className='fill' />
@@ -222,8 +219,7 @@ export const PaymethodOptionPaypalExpress = (props) => {
222
219
  orderTypes.map(type => (
223
220
  <TabOption
224
221
  key={type.value}
225
- isDisabledFeature={isDisabledFeature}
226
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
222
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
227
223
  >
228
224
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
229
225
  <RiCheckboxFill className='fill' />
@@ -244,7 +240,6 @@ export const PaymethodOptionPaypalExpress = (props) => {
244
240
  {actionState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
245
241
  </Button>
246
242
  </Container>
247
- {(isDisabledFeature && (paymentTabs === 1 || paymentTabs === 2)) && (<DisabledFeatureAlert />)}
248
243
  <Confirm
249
244
  width='700px'
250
245
  title={t('WEB_APPNAME', 'Ordering')}
@@ -9,7 +9,6 @@ import { useTheme } from 'styled-components'
9
9
  import { ThreeDots, XLg } from 'react-bootstrap-icons'
10
10
  import { Dropdown, DropdownButton } from 'react-bootstrap'
11
11
  import { Confirm } from '../../Shared'
12
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
13
12
 
14
13
  import {
15
14
  Container,
@@ -39,8 +38,7 @@ export const PaymethodOptionStripeConnect = (props) => {
39
38
  businessPaymethod,
40
39
  orderTypes,
41
40
  handleChangeBusinessPaymentState,
42
- handleDeletePaymethod,
43
- isDisabledFeature
41
+ handleDeletePaymethod
44
42
  } = props
45
43
 
46
44
  const theme = useTheme()
@@ -249,8 +247,7 @@ export const PaymethodOptionStripeConnect = (props) => {
249
247
  sitesState?.sites.map(site => (
250
248
  <TabOption
251
249
  key={site.id}
252
- isDisabledFeature={isDisabledFeature}
253
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
250
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
254
251
  >
255
252
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
256
253
  <RiCheckboxFill className='fill' />
@@ -266,8 +263,7 @@ export const PaymethodOptionStripeConnect = (props) => {
266
263
  orderTypes.map(type => (
267
264
  <TabOption
268
265
  key={type.value}
269
- isDisabledFeature={isDisabledFeature}
270
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
266
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
271
267
  >
272
268
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
273
269
  <RiCheckboxFill className='fill' />
@@ -288,7 +284,6 @@ export const PaymethodOptionStripeConnect = (props) => {
288
284
  {actionState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
289
285
  </Button>
290
286
  </Container>
291
- {(isDisabledFeature && (paymentTabs === 1 || paymentTabs === 2)) && (<DisabledFeatureAlert />)}
292
287
  <Confirm
293
288
  width='700px'
294
289
  title={t('WEB_APPNAME', 'Ordering')}
@@ -8,7 +8,6 @@ import { useTheme } from 'styled-components'
8
8
  import { ThreeDots, XLg } from 'react-bootstrap-icons'
9
9
  import { Dropdown, DropdownButton } from 'react-bootstrap'
10
10
  import { Confirm } from '../../Shared'
11
- import { DisabledFeatureAlert } from '../../DisabledFeatureAlert'
12
11
 
13
12
  import {
14
13
  Container,
@@ -36,8 +35,7 @@ export const PaymethodOptionStripeRedirect = (props) => {
36
35
  businessPaymethod,
37
36
  orderTypes,
38
37
  handleChangeBusinessPaymentState,
39
- handleDeletePaymethod,
40
- isDisabledFeature
38
+ handleDeletePaymethod
41
39
  } = props
42
40
 
43
41
  const theme = useTheme()
@@ -223,8 +221,7 @@ export const PaymethodOptionStripeRedirect = (props) => {
223
221
  sitesState?.sites.map(site => (
224
222
  <TabOption
225
223
  key={site.id}
226
- isDisabledFeature={isDisabledFeature}
227
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'sites', value: site.id })}
224
+ onClick={() => setPaymethodInfo({ key: 'sites', value: site.id })}
228
225
  >
229
226
  {(changesState?.sites ?? businessPaymethod?.sites?.map(s => s.id))?.includes(site.id) ? (
230
227
  <RiCheckboxFill className='fill' />
@@ -240,8 +237,7 @@ export const PaymethodOptionStripeRedirect = (props) => {
240
237
  orderTypes.map(type => (
241
238
  <TabOption
242
239
  key={type.value}
243
- isDisabledFeature={isDisabledFeature}
244
- onClick={() => !isDisabledFeature && setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
240
+ onClick={() => setPaymethodInfo({ key: 'allowed_order_types', value: type.value })}
245
241
  >
246
242
  {(changesState?.allowed_order_types ?? businessPaymethod?.allowed_order_types)?.includes(type.value) ? (
247
243
  <RiCheckboxFill className='fill' />
@@ -262,7 +258,6 @@ export const PaymethodOptionStripeRedirect = (props) => {
262
258
  {actionState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
263
259
  </Button>
264
260
  </Container>
265
- {(isDisabledFeature && (paymentTabs === 1 || paymentTabs === 2)) && (<DisabledFeatureAlert />)}
266
261
  <Confirm
267
262
  width='700px'
268
263
  title={t('WEB_APPNAME', 'Ordering')}