Repository URL to install this package:
|
Version:
0.0.15 ▾
|
import React from 'react';
import { styled } from 'styleh-components';
import { Ratings } from '@skava/ui-presets/dist/presets/Ratings';
const StyledRatings = styled(Ratings) `
margin-right: 5px;
margin-left: 5px;
transform: scale(0.8, 0.8);
transform-origin: top left;
`;
const StyledCount = styled.span ``;
const attributes = {
starCount: 1,
starRating: 1,
shouldShowCount: false,
};
class StarView extends React.PureComponent {
render() {
const { addingNumber } = this.props;
return (React.createElement(React.Fragment, null,
React.createElement(StyledCount, null, addingNumber),
React.createElement(StyledRatings, Object.assign({}, attributes))));
}
}
StarView.defaultProps = {
starCount: 1,
starRating: 1,
shouldShowCount: false,
};
export { StarView };
export default StarView;
//# sourceMappingURL=Star.js.map