Skip to content

Commit 03927a6

Browse files
committed
Rename views
1 parent 17a298d commit 03927a6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/example/examplePresenter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useContext } from 'react';
22
import styles from './example.module.scss';
33
import { ExampleData } from './exampleAdapter';
4-
import PostsView from './examplePostsView';
4+
import ViewPosts from './exampleViewPosts';
55

66
const 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>;

components/example/examplePostsView.tsx renamed to components/example/exampleViewPosts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { useContext } from 'react';
22
import styles from './example.module.scss';
33
import { ExampleData } from './exampleAdapter';
4-
import PostSingleView from './examplePostSingleView';
4+
import ViewPostSingle from './exampleViewPostSingle';
55
import { ExamplePostType } from './exampleType';
66

77
const 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
};

0 commit comments

Comments
 (0)