File tree Expand file tree Collapse file tree
React-Cards-Layout/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,3 +22,4 @@ dist-ssr
2222* .njsproj
2323* .sln
2424* .sw ?
25+ node_modules /
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import cardsData from './CardsData'
44import { useNavigate } from 'react-router-dom'
55
66const 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 (
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const Routes = () => {
99 element :< Login />
1010 } ,
1111 {
12- path :'/SignUp ' ,
12+ path :'/signUp ' ,
1313 element :< SignUp />
1414 } ,
1515 { } ,
You can’t perform that action at this time.
0 commit comments