diff --git a/src/components/CompanyAndJobTitle/InterviewExperiences/ExperienceEntry.js b/src/components/CompanyAndJobTitle/InterviewExperiences/ExperienceEntry.js
index badef9e4a..50af3058c 100644
--- a/src/components/CompanyAndJobTitle/InterviewExperiences/ExperienceEntry.js
+++ b/src/components/CompanyAndJobTitle/InterviewExperiences/ExperienceEntry.js
@@ -10,6 +10,7 @@ import Coin from 'common/icons/Coin';
import styles from './InterviewExperiences.module.css';
import { formatCreatedAt, formatSalary, formatSalaryRange } from './helper';
import Rating from './Rating';
+import OverallRating from 'common/OverallRating';
const createLinkTo = ({ id, pageType }) => ({
pathname: `/experiences/${id}`,
@@ -27,6 +28,7 @@ const ExperienceEntry = ({
created_at: createdAt,
salary,
overall_rating: overallRating,
+ averageSectionRating,
sections: [section],
},
size,
@@ -60,12 +62,13 @@ const ExperienceEntry = ({
)}
)}
-
-
- 評分:{overallRating.toFixed(1)} 分
+ {typeof averageSectionRating !== 'undefined' ? (
+
+ ) : (
+
+
-
-
+ )}
@@ -97,12 +100,13 @@ const ExperienceEntry = ({
ExperienceEntry.propTypes = {
canView: PropTypes.bool.isRequired,
data: PropTypes.shape({
+ averageSectionRating: PropTypes.number,
created_at: PropTypes.string.isRequired,
id: PropTypes.string.isRequired,
job_title: PropTypes.shape({ name: PropTypes.string.isRequired })
.isRequired,
originalCompanyName: PropTypes.string,
- overall_rating: PropTypes.number.isRequired,
+ overall_rating: PropTypes.number,
salary: PropTypes.shape({
amount: PropTypes.number.isRequired,
type: PropTypes.string.isRequired,
diff --git a/src/components/CompanyAndJobTitle/InterviewExperiences/InterviewExperiences.module.css b/src/components/CompanyAndJobTitle/InterviewExperiences/InterviewExperiences.module.css
index ca36fc918..e009f03cd 100644
--- a/src/components/CompanyAndJobTitle/InterviewExperiences/InterviewExperiences.module.css
+++ b/src/components/CompanyAndJobTitle/InterviewExperiences/InterviewExperiences.module.css
@@ -70,10 +70,6 @@
}
.rating {
- .label {
- margin-right: 1em;
- }
-
svg {
cursor: auto;
width: 24px;