Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/packages / ui / Rating / Star.js
Size: Mime:
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