import { StyleRoot } from 'radium'
// inside render
return (
<StyleRoot>
your app code here
</StyleRoot>
)
@import url("../../public/css/app.css");
import { ButtonBuyNow } from './index'
// render it after the Cart Total amount
<ButtonBuyNow />
const customStyles = {
btn: {
backgroundColor: '#ec4800',
width: '110px',
':hover': {
backgroundColor: '#f98d00',
}
}
}
(onClick and disabled). The first one is to go to the confirmation page, and the second one is to disable the button if the cart is empty.
<ButtonBuyNow
onClick={ this.props.onBuy }
disabled={ totalPrice === 0 }
/>