Skip to content

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
subhradwi01 committed Jul 24, 2023
1 parent 9bac146 commit d741aea
Show file tree
Hide file tree
Showing 8 changed files with 129 additions and 51 deletions.
160 changes: 118 additions & 42 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"react-dom": "^18.1.0",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"react-toastify": "^9.1.3",
"recharts": "^2.1.10",
"web-vitals": "^2.1.4"
},
Expand Down
8 changes: 4 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="%PUBLIC_URL%/netflix.png" />
<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"
content="Netadmin a movie management dashboard"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/netflix.png" />

<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>React Admin App</title>
<title>NetAdmin</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file added public/netflix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import NewList from "./Pages/NewList/NewList";
import { AuthContext } from "./context/authContext/AuthContext";
import {api} from "./config"
import jwt_decode from "jwt-decode"
import 'react-toastify/dist/ReactToastify.css';
function App() {
const [mobileSidebar, setMobileSidebar] = useState(false);
const [showMobileSidebar, setShowMobileSidebar] = useState(false);
Expand Down
2 changes: 2 additions & 0 deletions src/Pages/List/List.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
border-radius: 5px;
font-size: 16px;
cursor: pointer;
margin-bottom: 10px;
margin-top: 10px;
}

.productTop {
Expand Down
6 changes: 2 additions & 4 deletions src/Pages/Login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,16 @@ const Login = () => {
return;
}
await login({ username: data.email, password: data.password }, dispatch);

};

console.log(error,isFetching)
// if(user){
// return navigate("/")
// }

return (
<div className="login">
{err.is || error.has && (
<div className="errMsg">{err.message || error.message}</div>
)}

<form className="loginForm">
<div className="adminImg">
<img
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axios from "axios"
export const api=axios.create({
baseURL:"https://subh-netflix-api.onrender.com/netflixApi"
baseURL:"https://netflix-clone-api-production-3993.up.railway.app/netflixApi"
})

0 comments on commit d741aea

Please sign in to comment.