Skip to content

Commit b130faa

Browse files
committed
Fix spelling errors in CertificationList component and update variable names for consistency
1 parent 83c5c3a commit b130faa

1 file changed

Lines changed: 26 additions & 25 deletions

File tree

src/Page/OpportunitiesHub/CertificationList.jsx

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,23 @@ const shareContent = (url, title, organizer) => {
1818
}
1919
};
2020

21-
// List of all the certfications that matters for developers!
21+
// List of all the certifications that matters for developers!
2222

23-
const certfication = [
23+
const certification = [
2424
{
25-
organizer: 'Organizer Name',
26-
title: 'Event Name',
27-
location: 'Event Location',
28-
date: 'Event Date',
29-
domains: ['Open Innovation', 'No Restrictions'],
30-
applyLink: '#',
31-
poster: '/assets/Coming Soon.png',
32-
shareLink: '#comingsoon',
25+
organizer: 'Coursera',
26+
title: 'Foundations of User Experience (UX) Design',
27+
duration: '4 Weeks',
28+
level: 'Beginner',
29+
skills: ['UX', 'Design Thinking', 'Prototyping'],
30+
referralCode: 'UX-REF123',
31+
certificateLink: 'https://coursera.org/verify/ABCD1234',
32+
poster: '/assets/ux-cert.png',
33+
shareLink: '#ux-certification',
3334
},
3435
];
3536

36-
const StyledcertficationCard = styled.div`
37+
const StyledcertificationCard = styled.div`
3738
position: relative;
3839
border: 1px solid rgb(182, 228, 250);
3940
background: linear-gradient(to right, rgba(15, 27, 53, 0.44), rgba(0, 43, 62, 0.43));
@@ -109,9 +110,9 @@ const StyledcertficationCard = styled.div`
109110
}
110111
`;
111112

112-
const CertficationCardComponent = ({ organizer, title, location, date, domains, applyLink, poster, shareLink }) => {
113+
const CertificationCardComponent = ({ organizer, title, location, date, domains, applyLink, poster, shareLink }) => {
113114
return (
114-
<StyledcertficationCard id={shareLink.substring(1)}>
115+
<StyledcertificationCard id={shareLink.substring(1)}>
115116
{/* <div className="dot"></div> */}
116117
<div className="flex items-center justify-between p-2">
117118
<span className="text-sm font-semibold text-white">
@@ -170,7 +171,7 @@ const CertficationCardComponent = ({ organizer, title, location, date, domains,
170171
</span>
171172
))}
172173
</div>
173-
</StyledcertficationCard>
174+
</StyledcertificationCard>
174175
);
175176
};
176177

@@ -187,7 +188,7 @@ const CertficationCardComponent = ({ organizer, title, location, date, domains,
187188
`}
188189
</style>;
189190

190-
const StyledcertficationListContainer = styled.div`
191+
const StyledcertificationListContainer = styled.div`
191192
display: flex;
192193
flex-wrap: wrap;
193194
justify-content: center;
@@ -241,20 +242,20 @@ const FilterContainer = styled.div`
241242
}
242243
`;
243244

244-
const CertficationList = () => {
245+
const CertificationList = () => {
245246
const [locationFilter, setLocationFilter] = useState('');
246247
const [monthFilter, setMonthFilter] = useState('');
247248
const [domainFilter, setDomainFilter] = useState('');
248249

249-
const filteredcertfication = certfication.filter((certfication) => {
250+
const filteredcertification = certification.filter((certification) => {
250251
const matchesLocation = locationFilter
251-
? certfication.location.toLowerCase().includes(locationFilter.toLowerCase())
252+
? certification.location.toLowerCase().includes(locationFilter.toLowerCase())
252253
: true;
253254
const matchesMonth = monthFilter
254-
? new Date(certfication.date.split(' - ')[0]).getMonth() + 1 === parseInt(monthFilter)
255+
? new Date(certification.date.split(' - ')[0]).getMonth() + 1 === parseInt(monthFilter)
255256
: true;
256257
const matchesDomain = domainFilter
257-
? certfication.domains.some((domain) => domain.toLowerCase().includes(domainFilter.toLowerCase()))
258+
? certification.domains.some((domain) => domain.toLowerCase().includes(domainFilter.toLowerCase()))
258259
: true;
259260
return matchesLocation && matchesMonth && matchesDomain;
260261
});
@@ -290,13 +291,13 @@ const CertficationList = () => {
290291
onChange={(e) => setDomainFilter(e.target.value)}
291292
/>
292293
</FilterContainer>
293-
<StyledcertficationListContainer>
294-
{filteredcertfication.map((certfication, idx) => (
295-
<CertficationCardComponent key={idx} {...certfication} />
294+
<StyledcertificationListContainer>
295+
{filteredcertification.map((certification, idx) => (
296+
<CertificationCardComponent key={idx} {...certification} />
296297
))}
297-
</StyledcertficationListContainer>
298+
</StyledcertificationListContainer>
298299
</>
299300
);
300301
};
301302

302-
export default CertficationList;
303+
export default CertificationList;

0 commit comments

Comments
 (0)