Skip to content

Commit

Permalink
Merge pull request #88 from tech-for-better/86-skills
Browse files Browse the repository at this point in the history
86 skills
  • Loading branch information
akomiqaia authored Sep 1, 2020
2 parents 552bb23 + 588f99e commit d084a11
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"object-curly-newline": "off",
"arrow-body-style": ["error", "always"],
"camelcase": "off",
"@typescript-eslint/camelcase": ["error", {"allow": ["online_only", "career_paths", "soc_code", "total_price", "start_year", "end_year"]}]
"@typescript-eslint/camelcase": ["error", {"allow": ["online_only", "career_paths", "soc_code", "total_price", "career_progression", "start_year", "end_year"]}]
},
"overrides": [
{
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

- Career path data
- Information to be uploaded to strapi admin site
- Supply a 70x70 .png image for the card/link
- It should have a white forefront and a transparent background. We recommend getting images from https://www.flaticon.com/


Expand Down
11 changes: 4 additions & 7 deletions src/components/careerPath/CareerPathDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface CareerPath {
name: string;
strapiId: number;
video_url: string;
career_progressioion: string;
}

const ReverseCardGroupStyle = styled(CardGroupStyle)`
Expand All @@ -31,7 +32,7 @@ const Video = styled.iframe`
`;

const CareerPathDetail: React.FC<CareerPath> = ({
path: { description, lmiCode, name, videoUrl },
path: { description, lmiCode, name, videoUrl, career_progression },
}) => {
return (
<main>
Expand All @@ -41,14 +42,10 @@ const CareerPathDetail: React.FC<CareerPath> = ({
<StyledCard>
<Card.Body>
<Card.Title className="mb-4">
<strong>Skills You will acquire:</strong>
<strong>Career progression</strong>
</Card.Title>
<Card.Text>
<li>User research</li>
<li>Finding the Colors in Nature</li>
<li>Time Managment</li>
<li>{lmiCode}</li>
<li>This section is hardcoded we need to update schema on the backend</li>
<ReactMarkdown source={career_progression} />
</Card.Text>
</Card.Body>
</StyledCard>
Expand Down
1 change: 1 addition & 0 deletions src/pages/career-paths.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const CareerPaths: React.FC<PageProps> = () => {
node {
color
description
career_progression
icon_url
name
strapiId
Expand Down
4 changes: 3 additions & 1 deletion src/templates/CareerPath.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const CareerPath: React.FC<PageProps> = ({ data }) => {
name,
video_url: videoUrl,
lmi_code: lmiCode,
career_progression,
} = data?.careers?.edges[0]?.node;

const courses = (data?.careers?.edges[0]?.node.courses).map((a) => {
Expand All @@ -23,7 +24,7 @@ const CareerPath: React.FC<PageProps> = ({ data }) => {

return (
<main>
<CareerPathDetail path={{ name, videoUrl, lmiCode, description }} />
<CareerPathDetail path={{ name, videoUrl, lmiCode, description, career_progression }} />
<div className="mb-5">
<h2 className="mb-4">Career Path Courses:</h2>
<CoursesWrapper courseData={courses} />
Expand Down Expand Up @@ -51,6 +52,7 @@ export const query = graphql`
link
description
}
career_progression
}
}
}
Expand Down

0 comments on commit d084a11

Please sign in to comment.