diff --git a/src/components/FieldStarRating/FieldStarRating.css b/src/components/FieldReviewRating/FieldReviewRating.css similarity index 100% rename from src/components/FieldStarRating/FieldStarRating.css rename to src/components/FieldReviewRating/FieldReviewRating.css diff --git a/src/components/FieldStarRating/FieldStarRating.example.js b/src/components/FieldReviewRating/FieldReviewRating.example.js similarity index 88% rename from src/components/FieldStarRating/FieldStarRating.example.js rename to src/components/FieldReviewRating/FieldReviewRating.example.js index b84ca856..53512eb0 100644 --- a/src/components/FieldStarRating/FieldStarRating.example.js +++ b/src/components/FieldReviewRating/FieldReviewRating.example.js @@ -3,9 +3,9 @@ import React from 'react'; import { reduxForm, propTypes as formPropTypes } from 'redux-form'; import * as validators from '../../util/validators'; import { Button } from '../../components'; -import FieldStarRating from './FieldStarRating'; +import FieldReviewRating from './FieldReviewRating'; -const formName = 'Styleguide.FieldStarRating.Form'; +const formName = 'Styleguide.FieldReviewRating.Form'; const FormComponent = props => { const { form, handleSubmit, invalid, pristine, submitting } = props; @@ -14,7 +14,7 @@ const FormComponent = props => { return (
- @@ -102,7 +102,7 @@ class FieldStarRatingComponent extends Component { } } -FieldStarRatingComponent.defaultProps = { +FieldReviewRatingComponent.defaultProps = { rootClassName: null, className: null, clearOnUnmount: false, @@ -112,7 +112,7 @@ FieldStarRatingComponent.defaultProps = { const { string, bool, shape, func, object } = PropTypes; -FieldStarRatingComponent.propTypes = { +FieldReviewRatingComponent.propTypes = { rootClassName: string, className: string, clearOnUnmount: bool, @@ -133,8 +133,8 @@ FieldStarRatingComponent.propTypes = { intl: intlShape.isRequired, }; -const FieldStarRating = props => { - return ; +const FieldReviewRating = props => { + return ; }; -export default injectIntl(FieldStarRating); +export default injectIntl(FieldReviewRating); diff --git a/src/components/index.js b/src/components/index.js index 012df6c2..e23e9ad5 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -27,7 +27,7 @@ export { default as EditListingWizard } from './EditListingWizard/EditListingWiz export { default as ExpandingTextarea } from './ExpandingTextarea/ExpandingTextarea'; export { default as ExternalLink } from './ExternalLink/ExternalLink'; export { default as FilterPanel } from './FilterPanel/FilterPanel'; -export { default as FieldStarRating } from './FieldStarRating/FieldStarRating'; +export { default as FieldReviewRating } from './FieldReviewRating/FieldReviewRating'; export { default as Footer } from './Footer/Footer'; export { default as Form } from './Form/Form'; export { default as IconBannedUser } from './IconBannedUser/IconBannedUser'; diff --git a/src/containers/ReviewForm/ReviewForm.js b/src/containers/ReviewForm/ReviewForm.js index ea33ed66..f98a8297 100644 --- a/src/containers/ReviewForm/ReviewForm.js +++ b/src/containers/ReviewForm/ReviewForm.js @@ -7,7 +7,7 @@ import classNames from 'classnames'; import { isTransactionsTransitionAlreadyReviewed } from '../../util/errors'; import * as propTypes from '../../util/propTypes'; import { required } from '../../util/validators'; -import { FieldStarRating, Form, PrimaryButton, TextInputField } from '../../components'; +import { FieldReviewRating, Form, PrimaryButton, TextInputField } from '../../components'; import css from './ReviewForm.css'; @@ -60,7 +60,7 @@ const ReviewFormComponent = props => { return ( -