Skip to main content

Function: LoginToOrderButton()

LoginToOrderButton(props): Element

Defined in: components/LoginToOrderButton.tsx:36

Log-in call to action shown in place of add-to-cart.

A semi-closed portal hides ordering from anonymous visitors. Rendering nothing in that slot leaves a dead end, so callers swap in this button: it occupies the same position as the add-to-cart control and sends the visitor to the host's login route.

Parameters

props

LoginToOrderButtonProps

Returns

Element