Skip to content

Commit 9fbe480

Browse files
Adding updates
1 parent 02f723b commit 9fbe480

6 files changed

Lines changed: 7 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
node_modules/

React-Cards-Layout/src/components/CardDetail.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const CardDetail = () => {
1212

1313
if(!post){
1414
return <div>
15-
<h1 className=' flex justify-center mt-20 text-3xl text-red-800 font-black' >Post Not Available</h1>
15+
{/* <h1 className=' flex justify-center mt-20 text-3xl text-red-800 font-black' >Post Not Available</h1> */}
1616
</div>
1717
}
1818

React-Cards-Layout/src/components/Cards.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import cardsData from './CardsData'
44
import { useNavigate } from 'react-router-dom'
55

66
const Cards = () => {
7-
const navigate = useNavigate();
7+
const navigate = useNavigate(false);
88
const location = useLocation()
99
const cardRefs = useRef({})
1010

@@ -18,6 +18,7 @@ const Cards = () => {
1818
if (scrollToId && cardRefs.current[scrollToId]) {
1919
cardRefs.current[scrollToId].scrollIntoView({ behavior: 'smooth' });
2020
}
21+
2122
},[location])
2223

2324
return (

ToggleNav/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
7-
"dev": "vite",
7+
"dev": "vite --host",
88
"build": "vite build",
99
"lint": "eslint .",
1010
"preview": "vite preview"

facebook-login-clone/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
7-
"dev": "vite",
7+
"dev": "vite --host",
88
"build": "vite build",
99
"lint": "eslint .",
1010
"preview": "vite preview"

facebook-login-clone/src/Routes.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Routes = () => {
99
element:<Login/>
1010
},
1111
{
12-
path:'/SignUp',
12+
path:'/signUp',
1313
element:<SignUp/>
1414
},
1515
{},

0 commit comments

Comments
 (0)