diff --git a/learn-redux-middleware/src/App.js b/learn-redux-middleware/src/App.js
index 4991fa8..2ea9d17 100644
--- a/learn-redux-middleware/src/App.js
+++ b/learn-redux-middleware/src/App.js
@@ -1,11 +1,10 @@
-import logo from './logo.svg';
-import './App.css';
import CounterContainer from './containers/CounterContainer';
+import SampleContainer from './containers/SampleContainer';
function App() {
return (
-
+
);
}
diff --git a/learn-redux-middleware/src/components/Sample.js b/learn-redux-middleware/src/components/Sample.js
index 2ed6cac..7e88805 100644
--- a/learn-redux-middleware/src/components/Sample.js
+++ b/learn-redux-middleware/src/components/Sample.js
@@ -1,32 +1,34 @@
-const Sample = ({loadingPost, loadingUsers, post, users}) => {
- return (
-
-
- 포스트
- {loadingPost && '로딩 중...'}
- {!loadingPost && post && (
-
-
{post.title}
- {post.body}
-
- )}
-
-
-
- 사용자 목록
- {lodingUsers && '로딩 중...'}
- {!lodingUsers && users && (
-
- {users.map(user => (
- -
- {user.username} ({user.email})
-
- ))}
-
- )}
-
-
- );
+import React from 'react';
+
+const Sample = ({ post, users, loadingPost, loadingUsers }) => {
+ return (
+
+
+ 포스트
+ {loadingPost && '로딩중...'}
+ {!loadingPost && post && (
+
+
{post.title}
+ {post.body}
+
+ )}
+
+
+
+ 사용자 목록
+ {loadingUsers && '로딩중...'}
+ {!loadingUsers && users && (
+
+ {users.map(user => (
+ -
+ {user.username} ({user.email})
+
+ ))}
+
+ )}
+
+
+ );
};
export default Sample;
\ No newline at end of file
diff --git a/learn-redux-middleware/src/modules/sample.js b/learn-redux-middleware/src/modules/sample.js
index 3cc1738..766fdb2 100644
--- a/learn-redux-middleware/src/modules/sample.js
+++ b/learn-redux-middleware/src/modules/sample.js
@@ -1,6 +1,6 @@
import {handleActions} from 'redux-actions';
import * as api from '../lib/api';
-
+// import createRequestThunk from '../lib/createRequestThunk';
// 액션타입 선언
// 한요청당 세 개를 만들어야한다.
@@ -36,7 +36,7 @@ export const getPost = id => async dispatch => {
export const getUsers = () => async dispatch => {
dispatch({type: GET_USERS}); // 요청 시작을 알림
try{
- const response = await api.getUsers(id);
+ const response = await api.getUsers();
dispatch({
type: GET_USERS_SUCCESS,
payload: response.data
diff --git a/news-viewer/public/favicon.ico b/news-viewer/public/favicon.ico
deleted file mode 100644
index a11777c..0000000
Binary files a/news-viewer/public/favicon.ico and /dev/null differ
diff --git a/news-viewer/public/index.html b/news-viewer/public/index.html
deleted file mode 100644
index aa069f2..0000000
--- a/news-viewer/public/index.html
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- React App
-
-
-
-
-
-
-
diff --git a/news-viewer/public/logo192.png b/news-viewer/public/logo192.png
deleted file mode 100644
index fc44b0a..0000000
Binary files a/news-viewer/public/logo192.png and /dev/null differ
diff --git a/news-viewer/public/logo512.png b/news-viewer/public/logo512.png
deleted file mode 100644
index a4e47a6..0000000
Binary files a/news-viewer/public/logo512.png and /dev/null differ
diff --git a/news-viewer/public/manifest.json b/news-viewer/public/manifest.json
deleted file mode 100644
index 080d6c7..0000000
--- a/news-viewer/public/manifest.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "short_name": "React App",
- "name": "Create React App Sample",
- "icons": [
- {
- "src": "favicon.ico",
- "sizes": "64x64 32x32 24x24 16x16",
- "type": "image/x-icon"
- },
- {
- "src": "logo192.png",
- "type": "image/png",
- "sizes": "192x192"
- },
- {
- "src": "logo512.png",
- "type": "image/png",
- "sizes": "512x512"
- }
- ],
- "start_url": ".",
- "display": "standalone",
- "theme_color": "#000000",
- "background_color": "#ffffff"
-}
diff --git a/news-viewer/public/robots.txt b/news-viewer/public/robots.txt
deleted file mode 100644
index e9e57dc..0000000
--- a/news-viewer/public/robots.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# https://www.robotstxt.org/robotstxt.html
-User-agent: *
-Disallow:
diff --git a/news-viewer/src/index.css b/news-viewer/src/index.css
deleted file mode 100644
index ec2585e..0000000
--- a/news-viewer/src/index.css
+++ /dev/null
@@ -1,13 +0,0 @@
-body {
- margin: 0;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
- sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-code {
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
- monospace;
-}