File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { useContext } from 'react' ;
22import styles from './example.module.scss' ;
33import { ExampleData } from './exampleAdapter' ;
4- import PostsView from './examplePostsView ' ;
4+ import ViewPosts from './exampleViewPosts ' ;
55
66const Presenter = ( ) => {
77 const { query } = useContext ( ExampleData ) ;
@@ -12,7 +12,7 @@ const Presenter = () => {
1212 } else if ( query . isError ) {
1313 contents = < div > Error: { query . error . message } </ div > ;
1414 } else {
15- contents = < PostsView /> ;
15+ contents = < ViewPosts /> ;
1616 }
1717
1818 return < section className = { styles . container } > { contents } </ section > ;
File renamed without changes.
Original file line number Diff line number Diff line change 11import { useContext } from 'react' ;
22import styles from './example.module.scss' ;
33import { ExampleData } from './exampleAdapter' ;
4- import PostSingleView from './examplePostSingleView ' ;
4+ import ViewPostSingle from './exampleViewPostSingle ' ;
55import { ExamplePostType } from './exampleType' ;
66
77const View = ( ) => {
88 const { query } = useContext ( ExampleData ) ;
9- const dataMapper = ( post : ExamplePostType ) => < PostSingleView key = { post . id } post = { post } /> ;
9+ const dataMapper = ( post : ExamplePostType ) => < ViewPostSingle key = { post . id } post = { post } /> ;
1010
1111 return < div className = { styles . view } > { query . data . map ( dataMapper ) } </ div > ;
1212} ;
You can’t perform that action at this time.
0 commit comments