Import source: cshare-app/src/components/PageTransition
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { useLocation } from 'react-router-dom';
|
||||
|
||||
export default function PageTransition({ children }) {
|
||||
const { pathname } = useLocation();
|
||||
|
||||
return (
|
||||
<div key={pathname} className="page-enter">
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user