Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
phamthanhhang208 committed Jan 22, 2022
1 parent 1828908 commit 7aef08d
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 341 deletions.
3 changes: 3 additions & 0 deletions client/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REACT_APP_API_URL=https://zola.thanhpp.ninja
REACT_APP_CHAT_URL=ws://auco.thanhpp.ninja/ws
REACT_APP_CHAT_ENDPOINT=https://auco.thanhpp.ninja
317 changes: 0 additions & 317 deletions client/package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"react-infinite-scroll-component": "^6.1.0",
"react-query": "^3.34.2",
"react-scripts": "4.0.3",
"react-scroll-to-bottom": "^4.2.0",
"web-vitals": "^1.1.2"
},
"scripts": {
Expand Down
40 changes: 20 additions & 20 deletions client/public/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Expand All @@ -24,12 +24,12 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
<title>Zola App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand All @@ -39,5 +39,5 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</body>
</html>
Empty file removed client/src/App.css
Empty file.
1 change: 0 additions & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "./App.css";
import Router from "./components/routes/Router";

function App() {
Expand Down
1 change: 0 additions & 1 deletion client/src/containers/Chat/Chat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ export default function Chat(props) {
<InfiniteScroll
dataLength={chat.length}
next={fetchNextPage}
//next={() => console.log("called next")}
style={{ display: "flex", flexDirection: "column-reverse" }}
inverse={true}
hasMore={hasNextPage}
Expand Down
1 change: 0 additions & 1 deletion client/src/views/UserDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default function UserDetail() {
);

useEffect(() => {
//console.log("running effect");
if (id === user.userId) {
setIsEditable(true);
}
Expand Down

0 comments on commit 7aef08d

Please sign in to comment.