Skip to content

Commit 2e23f54

Browse files
committed
change student count to location and change style to h3
1 parent 38870c2 commit 2e23f54

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

client/components/resource-details/ResourceInfo.tsx

+2-15
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@ const Name = styled(PageTitle)`
2525
margin-top: 32px;
2626
`
2727

28-
const Metadata = styled.div`
29-
margin-bottom: 16px;
30-
`
31-
32-
const MemberCount = styled.p`
33-
font-style: italic;
34-
font-weight: ${fontWeight.bold};
35-
margin-bottom: 0;
36-
margin-top: 0;
37-
`
38-
3928
const Description = styled.p`
4029
line-height: 1.3;
4130
flex: 1;
@@ -115,7 +104,7 @@ const AggregateRating = ({ criteria, value }: AggregateRatingProps) => {
115104

116105
export const ResourceInfo = ({ resource }: ResourceInfoProps) => {
117106
const router = useRouter()
118-
const { name, description, links, galleryImages, reviews, resourceSlug } = resource
107+
const { name, description, location, links, galleryImages, reviews, resourceSlug } = resource
119108

120109
const TotalReviews = styled.div`
121110
color: ${colours.primary2};
@@ -138,9 +127,7 @@ export const ResourceInfo = ({ resource }: ResourceInfoProps) => {
138127

139128
<RatingDescription>
140129
<Description>
141-
<Metadata>
142-
<MemberCount>200-300 students</MemberCount>
143-
</Metadata>
130+
<h3>{location}</h3>
144131
{description}
145132
</Description>
146133
<Ratings>

0 commit comments

Comments
 (0)