adding stuff

This commit is contained in:
talksik
2022-01-31 12:00:48 -08:00
parent 6a349f2227
commit 260a90c2fe
4 changed files with 62 additions and 5 deletions
+13 -3
View File
@@ -9,6 +9,7 @@ import Header from "../../components/v2/Header";
import Later from "../../components/v2/Later";
import Sidebar from "../../components/v2/Sidebar";
import { currPagePath } from "../../recoil/main";
import { CSSTransition, TransitionGroup } from "react-transition-group";
export default function Me() {
// figure out what content to render from here
@@ -50,9 +51,18 @@ export default function Me() {
<div className="flex-1 flex flex-row items-stretch">
<Sidebar />
<div className="flex-1 flex flex-col px-20 justify-start items-stretch container mx-auto">
{getCurrentContent()}
</div>
<TransitionGroup>
<CSSTransition
appear={true}
key={Math.random()}
timeout={1200}
classNames="slide"
>
<div className="flex-1 flex flex-col px-20 justify-start items-stretch container mx-auto">
{getCurrentContent()}
</div>
</CSSTransition>
</TransitionGroup>
</div>
</div>
);