diff --git a/src/Tools/_framework/Pages/PortfolioAddActivityPage.jsx b/src/Tools/_framework/Pages/PortfolioAddActivityPage.jsx new file mode 100644 index 0000000000..a5d6ca58f4 --- /dev/null +++ b/src/Tools/_framework/Pages/PortfolioAddActivityPage.jsx @@ -0,0 +1,112 @@ +import React, { useRef, useState } from 'react'; +import { useLoaderData, useNavigate } from 'react-router'; +import styled from 'styled-components'; +import Button from '../../../_reactComponents/PanelHeaderComponents/Button'; +import { checkIfUserClearedOut } from '../../../_utils/applicationUtils'; +import RouterLogo from '../RouterLogo'; + + + +const Main = styled.main` + display: flex; + flex-direction: column; + row-gap: 50px; + overflow-y: scroll; + height: 100vh; + margin: 0; + /* justify-content: center; */ + align-items: center; + text-align: center; +`; + +const SignInSection = styled.div` + display: flex; + flex-direction: column; + row-gap: 10px; + margin: 0px; + justify-content: center; + align-items: center; + text-align: center; + background: var(--mainGray); + height: 100%; + width: 100%; +` +const SideBySideButtons = styled.div` + display: flex; + column-gap: 20px; + +` + +export default function PortfolioAddActivityPage(props) { + // const loaderData = useLoaderData(); + // const carouselData = loaderData?.carouselData; + let navigate = useNavigate(); + let checkingCookie = useRef(false); + const [signedIn, setSignedIn] = useState(null); + + //Only ask once + if (!checkingCookie.current) { + checkingCookie.current = true; + checkIfUserClearedOut().then(({ cookieRemoved }) => { + setSignedIn(!cookieRemoved); + }) + } + + + let signInButton =