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)
|
||||
},
|
||||
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),
|
||||
editCustomer: async (root, { customerId, customerEdit }, context) => {
|
||||
const token = authentication.getToken(context)
|
||||
|
|
|
|||
|
|
@ -38,6 +38,12 @@ export const Carousel = memo(({ photosData, slidePhoto }) => {
|
|||
opacity: 1
|
||||
}
|
||||
}}
|
||||
// navButtonsWrapperProps={{
|
||||
// style: {
|
||||
// background: 'linear-gradient(to right, black 10%, transparent 80%)',
|
||||
// opacity: '0.4'
|
||||
// }
|
||||
// }}
|
||||
autoPlay={false}
|
||||
indicators={false}
|
||||
navButtonsAlwaysVisible={true}
|
||||
|
|
|
|||
|
|
@ -360,6 +360,9 @@ const CustomerData = ({
|
|||
<div>
|
||||
<div className={classes.header}>
|
||||
<H3 className={classes.title}>{'Customer data'}</H3>
|
||||
{// TODO: Remove false condition for next release
|
||||
false && (
|
||||
<>
|
||||
<FeatureButton
|
||||
active={!listView}
|
||||
className={classes.viewIcons}
|
||||
|
|
@ -373,6 +376,8 @@ const CustomerData = ({
|
|||
Icon={CustomerListViewIcon}
|
||||
InverseIcon={CustomerListViewReversedIcon}
|
||||
onClick={() => setListView(true)}></FeatureButton>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
<div>
|
||||
{!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 DataReversedIcon } from 'src/styling/icons/button/data/white.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 Discount } from 'src/styling/icons/button/discount/zodiac.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 { fromNamespace, namespaces } from 'src/utils/config'
|
||||
|
||||
import CustomerData from './CustomerData'
|
||||
|
|
@ -494,14 +494,17 @@ const CustomerProfile = memo(() => {
|
|||
onClick={() => setWizard(true)}>
|
||||
{`Manual data entry`}
|
||||
</ActionButton>
|
||||
<ActionButton
|
||||
{
|
||||
// TODO: Enable for next release
|
||||
/* <ActionButton
|
||||
className={classes.actionButton}
|
||||
color="primary"
|
||||
Icon={Discount}
|
||||
InverseIcon={DiscountReversedIcon}
|
||||
onClick={() => {}}>
|
||||
{`Add individual discount`}
|
||||
</ActionButton>
|
||||
</ActionButton> */
|
||||
}
|
||||
{isSuspended && (
|
||||
<ActionButton
|
||||
className={classes.actionButton}
|
||||
|
|
|
|||
|
|
@ -207,6 +207,8 @@ const EditableCard = ({
|
|||
<div className={classes.edit}>
|
||||
{!editing && (
|
||||
<div className={classes.editButton}>
|
||||
{// TODO: Remove false condition for next release
|
||||
false && (
|
||||
<div className={classes.deleteButton}>
|
||||
<ActionButton
|
||||
color="primary"
|
||||
|
|
@ -217,7 +219,7 @@ const EditableCard = ({
|
|||
{`Delete`}
|
||||
</ActionButton>
|
||||
</div>
|
||||
|
||||
)}
|
||||
<ActionButton
|
||||
color="primary"
|
||||
Icon={EditIcon}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,11 @@ const useStyles = makeStyles({
|
|||
},
|
||||
picker: {
|
||||
width: 150
|
||||
},
|
||||
field: {
|
||||
'& > *:last-child': {
|
||||
marginBottom: 24
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
@ -183,9 +188,11 @@ const EntryType = ({ customInfoRequirementOptions }) => {
|
|||
component={RadioGroup}
|
||||
name="requirement"
|
||||
options={
|
||||
!R.isEmpty(customInfoRequirementOptions)
|
||||
? updateRequirementOptions(requirementOptions)
|
||||
: requirementOptions
|
||||
requirementOptions
|
||||
// TODO: Enable once custom info requirement manual entry is finished
|
||||
// !R.isEmpty(customInfoRequirementOptions)
|
||||
// ? updateRequirementOptions(requirementOptions)
|
||||
// : requirementOptions
|
||||
}
|
||||
labelClassName={classes.label}
|
||||
radioClassName={classes.radio}
|
||||
|
|
@ -248,11 +255,18 @@ const ManualDataEntry = ({ selectedValues, customInfoRequirementOptions }) => {
|
|||
}}
|
||||
/>
|
||||
)}
|
||||
<div className={classes.field}>
|
||||
{!upload &&
|
||||
!isCustomInfoRequirement &&
|
||||
elements.options.map(({ label, name }) => (
|
||||
<Field name={name} label={label} component={TextInput} width={390} />
|
||||
<Field
|
||||
name={name}
|
||||
label={label}
|
||||
component={TextInput}
|
||||
width={390}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
{upload && (
|
||||
<Upload
|
||||
type={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue