@@ -165,7 +165,7 @@ class App extends Component {
165165 ) ;
166166 } ;
167167
168- onStarToRepository = ( repositoryId , viewerHasStarred ) => {
168+ onStarRepository = ( repositoryId , viewerHasStarred ) => {
169169 if ( viewerHasStarred ) {
170170 removeStarFromRepository ( repositoryId ) . then ( mutationResult =>
171171 this . setState ( resolveRemoveStarMutation ( mutationResult ) ) ,
@@ -204,7 +204,7 @@ class App extends Component {
204204 < Organization
205205 organization = { organization }
206206 errors = { errors }
207- onStarToRepository = { this . onStarToRepository }
207+ onStarRepository = { this . onStarRepository }
208208 />
209209 ) : (
210210 < p > No information yet ...</ p >
@@ -214,11 +214,7 @@ class App extends Component {
214214 }
215215}
216216
217- const Organization = ( {
218- organization,
219- errors,
220- onStarToRepository,
221- } ) => {
217+ const Organization = ( { organization, errors, onStarRepository } ) => {
222218 if ( errors ) {
223219 return (
224220 < p >
@@ -236,13 +232,13 @@ const Organization = ({
236232 </ p >
237233 < Repository
238234 repository = { organization . repository }
239- onStarToRepository = { onStarToRepository }
235+ onStarRepository = { onStarRepository }
240236 />
241237 </ div >
242238 ) ;
243239} ;
244240
245- const Repository = ( { repository, onStarToRepository } ) => (
241+ const Repository = ( { repository, onStarRepository } ) => (
246242 < div >
247243 < p >
248244 < strong > In Repository:</ strong >
@@ -252,7 +248,7 @@ const Repository = ({ repository, onStarToRepository }) => (
252248 < button
253249 type = "button"
254250 onClick = { ( ) =>
255- onStarToRepository ( repository . id , repository . viewerHasStarred )
251+ onStarRepository ( repository . id , repository . viewerHasStarred )
256252 }
257253 >
258254 { repository . stargazers . totalCount }
0 commit comments