This repository was archived by the owner on Mar 9, 2021. It is now read-only.
File tree 2 files changed +5
-10
lines changed
2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export default ({ subject }) => (
81
81
< i className = { subject . icon } />
82
82
</ div >
83
83
< div className = "content" >
84
- < h3 className = "title" > { subject . title } </ h3 >
84
+ < h3 className = "title" > Learn { subject . title } </ h3 >
85
85
< p className = "subtitle" fontSize = { [ 12 , 14 , 16 ] } >
86
86
{ subject . domain }
87
87
</ p >
Original file line number Diff line number Diff line change @@ -130,24 +130,19 @@ export default class Subject extends React.Component {
130
130
}
131
131
132
132
render ( ) {
133
- const subjectIcon = listOfSubjects . find ( item => item . subjectId === this . props . url . query . subject ) . icon ;
133
+ const subject = listOfSubjects . find ( item => item . subjectId === this . props . url . query . subject ) ;
134
134
return this . state . activeSubject === null ? (
135
135
< Layout >
136
136
< BannerSection
137
137
textInverted
138
- title = { this . props . url . query . subject . toUpperCase ( ) }
138
+ title = { `Learn ${ subject . title } ` }
139
139
subTitle = { `Curriculum for ${ this . props . url . query . subject . toUpperCase ( ) } and others Coming soon!!` }
140
- icon = { subjectIcon }
140
+ icon = { subject . icon }
141
141
/>
142
142
</ Layout >
143
143
) : (
144
144
< Layout >
145
- < BannerSection
146
- textInverted
147
- title = { this . props . url . query . subject . toUpperCase ( ) }
148
- subTitle = "Web Development"
149
- icon = { subjectIcon }
150
- />
145
+ < BannerSection textInverted title = { `Learn ${ subject . title } ` } subTitle = { subject . domain } icon = { subject . icon } />
151
146
< CurriculumSection my = { [ 0 , 4 ] } >
152
147
< Flex column = { false } >
153
148
{ this . state . isSidebarOpen ? (
You can’t perform that action at this time.
0 commit comments