dennybritz/neal-react

Currency symbol from Font Awesome?

Closed this issue · 3 comments

$ symbol has a wide support of web fonts, but some currency, for example Russian ruble \u20BD has not.

It would be nice to be able to select the currency symbol in pricing-table component.

Not very familiar with React, tried to do, but unsuccessfully:

<div className="neal-pricing-plan-price-amount"><i className="fa fa-rub"></i> {this.props.price}</div

Great point. Right now the price attribute in PricingPlan is a string, but it should be a node object so that you can pass arbitrary things (like other html tags) to it. Will fix that.

Now you should be able to do something like:

<PricingTable price={<span><i className="fa fa-rub"/>599</span>} { ... } />

👍 Thanks a lot.