NestedModifiers

NestedModifiers

Methods

withNestedModifiers(Component) → {ReactElement}

Source:

Nested modifier drawer hook. Parse properties of nested modifier drawers and return the same component with additional properties.

Parameters:
Name Type Description
Component ReactElement

The Component from the parent nested drawer state.

Returns:

The Return element (type from the selector).

Type
ReactElement

Type Definitions

Component

Source:
Properties:
Name Type Description
props object
Properties
Name Type Description
addModifier function

add a modifier payload to parent state

onClose function

click event for background tint to close current drawer

parent object

parent payload (option and item with selected nested modifiers)

removeModifier function

remove a modifier payload from parent state

[showQuantity boolean

whether or not to render quantity selector

style string

the style cell type from parent item details

The parent component.

Type:
  • ReactElement

Return

Source:
Properties:
Name Type Description
props object
Properties
Name Type Description
addNestedModifier function
closeDrawer function
decrement function
errors array
increment function
modifications object
name string
nestedDrawer object
onClose function
onSubmit function
options array
optionsHash object
quantity number
removeNestedModifier function
showQuantity boolean
style object

The returned component from withNestedModifiers.

Type:
  • ReactElement