Repository URL to install this package:
|
Version:
0.0.2 ▾
|
import * as React from 'react';
import { Ratings as BaseRating } from '@skava/ui-presets/dist/presets/Ratings';
class Rating extends React.PureComponent {
render() {
const { value, qa } = this.props;
const props = {
'data-qa': qa,
'data-rating-value': value,
'starRating': value,
};
return React.createElement(BaseRating, Object.assign({}, props));
}
}
Rating.defaultProps = {
value: 0,
/**
* @todo !!! REMOVE DYNAMIC QA !!!
* @see https://bitbucket.org/skava-admin/documentation/wiki/Meta/QA
*/
qa: 'qa-product-rating',
};
export { Rating };
export default Rating;
//# sourceMappingURL=Rating.js.map