fix: disable unfinished features
This commit is contained in:
parent
8ad127c6c4
commit
f4f4eb1335
6 changed files with 67 additions and 37 deletions
|
|
@ -21,7 +21,7 @@ const resolvers = {
|
||||||
return customers.updateCustomer(customerId, customerInput, token)
|
return customers.updateCustomer(customerId, customerInput, token)
|
||||||
},
|
},
|
||||||
addCustomField: (...[, { customerId, label, value }]) => customers.addCustomField(customerId, label, value),
|
addCustomField: (...[, { customerId, label, value }]) => customers.addCustomField(customerId, label, value),
|
||||||
saveCustomField: (...[, { customerId, fieldId, newValue }]) => customers.saveCustomField(customerId, fieldId, newValue),
|
saveCustomField: (...[, { customerId, fieldId, value }]) => customers.saveCustomField(customerId, fieldId, value),
|
||||||
removeCustomField: (...[, [ { customerId, fieldId } ]]) => customers.removeCustomField(customerId, fieldId),
|
removeCustomField: (...[, [ { customerId, fieldId } ]]) => customers.removeCustomField(customerId, fieldId),
|
||||||
editCustomer: async (root, { customerId, customerEdit }, context) => {
|
editCustomer: async (root, { customerId, customerEdit }, context) => {
|
||||||
const token = authentication.getToken(context)
|
const token = authentication.getToken(context)
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,12 @@ export const Carousel = memo(({ photosData, slidePhoto }) => {
|
||||||
opacity: 1
|
opacity: 1
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
// navButtonsWrapperProps={{
|
||||||
|
// style: {
|
||||||
|
// background: 'linear-gradient(to right, black 10%, transparent 80%)',
|
||||||
|
// opacity: '0.4'
|
||||||
|
// }
|
||||||
|
// }}
|
||||||
autoPlay={false}
|
autoPlay={false}
|
||||||
indicators={false}
|
indicators={false}
|
||||||
navButtonsAlwaysVisible={true}
|
navButtonsAlwaysVisible={true}
|
||||||
|
|
|
||||||
|
|
@ -360,19 +360,24 @@ const CustomerData = ({
|
||||||
<div>
|
<div>
|
||||||
<div className={classes.header}>
|
<div className={classes.header}>
|
||||||
<H3 className={classes.title}>{'Customer data'}</H3>
|
<H3 className={classes.title}>{'Customer data'}</H3>
|
||||||
<FeatureButton
|
{// TODO: Remove false condition for next release
|
||||||
active={!listView}
|
false && (
|
||||||
className={classes.viewIcons}
|
<>
|
||||||
Icon={OverviewIcon}
|
<FeatureButton
|
||||||
InverseIcon={OverviewReversedIcon}
|
active={!listView}
|
||||||
onClick={() => setListView(false)}
|
className={classes.viewIcons}
|
||||||
/>
|
Icon={OverviewIcon}
|
||||||
<FeatureButton
|
InverseIcon={OverviewReversedIcon}
|
||||||
active={listView}
|
onClick={() => setListView(false)}
|
||||||
className={classes.viewIcons}
|
/>
|
||||||
Icon={CustomerListViewIcon}
|
<FeatureButton
|
||||||
InverseIcon={CustomerListViewReversedIcon}
|
active={listView}
|
||||||
onClick={() => setListView(true)}></FeatureButton>
|
className={classes.viewIcons}
|
||||||
|
Icon={CustomerListViewIcon}
|
||||||
|
InverseIcon={CustomerListViewReversedIcon}
|
||||||
|
onClick={() => setListView(true)}></FeatureButton>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{!listView && customer && (
|
{!listView && customer && (
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@ import { ReactComponent as BlockReversedIcon } from 'src/styling/icons/button/bl
|
||||||
import { ReactComponent as BlockIcon } from 'src/styling/icons/button/block/zodiac.svg'
|
import { ReactComponent as BlockIcon } from 'src/styling/icons/button/block/zodiac.svg'
|
||||||
import { ReactComponent as DataReversedIcon } from 'src/styling/icons/button/data/white.svg'
|
import { ReactComponent as DataReversedIcon } from 'src/styling/icons/button/data/white.svg'
|
||||||
import { ReactComponent as DataIcon } from 'src/styling/icons/button/data/zodiac.svg'
|
import { ReactComponent as DataIcon } from 'src/styling/icons/button/data/zodiac.svg'
|
||||||
import { ReactComponent as DiscountReversedIcon } from 'src/styling/icons/button/discount/white.svg'
|
// import { ReactComponent as DiscountReversedIcon } from 'src/styling/icons/button/discount/white.svg'
|
||||||
import { ReactComponent as Discount } from 'src/styling/icons/button/discount/zodiac.svg'
|
// import { ReactComponent as Discount } from 'src/styling/icons/button/discount/zodiac.svg'
|
||||||
import { fromNamespace, namespaces } from 'src/utils/config'
|
import { fromNamespace, namespaces } from 'src/utils/config'
|
||||||
|
|
||||||
import CustomerData from './CustomerData'
|
import CustomerData from './CustomerData'
|
||||||
|
|
@ -494,14 +494,17 @@ const CustomerProfile = memo(() => {
|
||||||
onClick={() => setWizard(true)}>
|
onClick={() => setWizard(true)}>
|
||||||
{`Manual data entry`}
|
{`Manual data entry`}
|
||||||
</ActionButton>
|
</ActionButton>
|
||||||
<ActionButton
|
{
|
||||||
|
// TODO: Enable for next release
|
||||||
|
/* <ActionButton
|
||||||
className={classes.actionButton}
|
className={classes.actionButton}
|
||||||
color="primary"
|
color="primary"
|
||||||
Icon={Discount}
|
Icon={Discount}
|
||||||
InverseIcon={DiscountReversedIcon}
|
InverseIcon={DiscountReversedIcon}
|
||||||
onClick={() => {}}>
|
onClick={() => {}}>
|
||||||
{`Add individual discount`}
|
{`Add individual discount`}
|
||||||
</ActionButton>
|
</ActionButton> */
|
||||||
|
}
|
||||||
{isSuspended && (
|
{isSuspended && (
|
||||||
<ActionButton
|
<ActionButton
|
||||||
className={classes.actionButton}
|
className={classes.actionButton}
|
||||||
|
|
|
||||||
|
|
@ -207,17 +207,19 @@ const EditableCard = ({
|
||||||
<div className={classes.edit}>
|
<div className={classes.edit}>
|
||||||
{!editing && (
|
{!editing && (
|
||||||
<div className={classes.editButton}>
|
<div className={classes.editButton}>
|
||||||
<div className={classes.deleteButton}>
|
{// TODO: Remove false condition for next release
|
||||||
<ActionButton
|
false && (
|
||||||
color="primary"
|
<div className={classes.deleteButton}>
|
||||||
type="button"
|
<ActionButton
|
||||||
Icon={DeleteIcon}
|
color="primary"
|
||||||
InverseIcon={DeleteReversedIcon}
|
type="button"
|
||||||
onClick={() => deleteEditedData()}>
|
Icon={DeleteIcon}
|
||||||
{`Delete`}
|
InverseIcon={DeleteReversedIcon}
|
||||||
</ActionButton>
|
onClick={() => deleteEditedData()}>
|
||||||
</div>
|
{`Delete`}
|
||||||
|
</ActionButton>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<ActionButton
|
<ActionButton
|
||||||
color="primary"
|
color="primary"
|
||||||
Icon={EditIcon}
|
Icon={EditIcon}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,11 @@ const useStyles = makeStyles({
|
||||||
},
|
},
|
||||||
picker: {
|
picker: {
|
||||||
width: 150
|
width: 150
|
||||||
|
},
|
||||||
|
field: {
|
||||||
|
'& > *:last-child': {
|
||||||
|
marginBottom: 24
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -183,9 +188,11 @@ const EntryType = ({ customInfoRequirementOptions }) => {
|
||||||
component={RadioGroup}
|
component={RadioGroup}
|
||||||
name="requirement"
|
name="requirement"
|
||||||
options={
|
options={
|
||||||
!R.isEmpty(customInfoRequirementOptions)
|
requirementOptions
|
||||||
? updateRequirementOptions(requirementOptions)
|
// TODO: Enable once custom info requirement manual entry is finished
|
||||||
: requirementOptions
|
// !R.isEmpty(customInfoRequirementOptions)
|
||||||
|
// ? updateRequirementOptions(requirementOptions)
|
||||||
|
// : requirementOptions
|
||||||
}
|
}
|
||||||
labelClassName={classes.label}
|
labelClassName={classes.label}
|
||||||
radioClassName={classes.radio}
|
radioClassName={classes.radio}
|
||||||
|
|
@ -248,11 +255,18 @@ const ManualDataEntry = ({ selectedValues, customInfoRequirementOptions }) => {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!upload &&
|
<div className={classes.field}>
|
||||||
!isCustomInfoRequirement &&
|
{!upload &&
|
||||||
elements.options.map(({ label, name }) => (
|
!isCustomInfoRequirement &&
|
||||||
<Field name={name} label={label} component={TextInput} width={390} />
|
elements.options.map(({ label, name }) => (
|
||||||
))}
|
<Field
|
||||||
|
name={name}
|
||||||
|
label={label}
|
||||||
|
component={TextInput}
|
||||||
|
width={390}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
{upload && (
|
{upload && (
|
||||||
<Upload
|
<Upload
|
||||||
type={
|
type={
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue