Skip to content

Commit

Permalink
Merge branch 'staging' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
AldemirLucas authored Jan 19, 2024
2 parents 122a527 + cfdfa89 commit 6db3f70
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion next/components/molecules/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function Footer({ pages, ocult = false }) {
<FooterLink href="https://info.basedosdados.org/bd-pro">
BD Pro
</FooterLink>
<FooterLink href="https://info.basedosdados.org/bd-edu">
<FooterLink href="https://info.basedosdados.org/bd-edu-py">
BD Edu
</FooterLink>
</SectionCategories>
Expand Down
10 changes: 5 additions & 5 deletions next/components/molecules/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function MenuDrawer({ isOpen, onClose, links }) {
<></>
:
<Stack display={isMobileMod() ? "flex" : "none"} marginTop="auto" gap="16px">
<RoundedButton
{/* <RoundedButton
backgroundColor="#FFF"
border="2px solid #42B0FF"
color="#42B0FF"
Expand All @@ -152,7 +152,7 @@ function MenuDrawer({ isOpen, onClose, links }) {
onClick={() => window.open("/user/register", "_self")}
>
Cadastrar
</RoundedButton>
</RoundedButton> */}
</Stack>
}
</DrawerContent>
Expand Down Expand Up @@ -783,14 +783,14 @@ function DesktopLinks({ links, position = false, path, userTemplate = false }) {
</HStack>
) : (
<>
<Link fontSize="15px" fontFamily="Ubuntu" fontWeight="400" letterSpacing="0.3px" href="/user/login">
{/* <Link fontSize="15px" fontFamily="Ubuntu" fontWeight="400" letterSpacing="0.3px" href="/user/login">
Entrar
</Link>
<Link _hover={{ opacity:"none" }} href="/user/register">
<RoundedButton height="35px" fontSize="15px" minWidth="110px" borderRadius="30px">
Cadastrar
</RoundedButton>
</Link>
</Link> */}
</>
)}
</HStack>
Expand All @@ -816,7 +816,7 @@ export default function MenuNav({ simpleTemplate = false, userTemplate = false }
Dados: "/dataset",
Soluções: [
{icon: <BDLogoProImage widthImage="54px"/>, name: "Dados exclusivos", href: "https://info.basedosdados.org/bd-pro"},
{icon: <BDLogoEduImage widthImage="54px"/>, name: "Curso de dados", href: "https://info.basedosdados.org/bd-edu"},
{icon: <BDLogoEduImage widthImage="54px"/>, name: "Curso de dados", href: "https://info.basedosdados.org/bd-edu-py"},
{},
{name: "Serviço", href: "/servicos"},
{},
Expand Down
4 changes: 2 additions & 2 deletions next/middlewares/authUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ async function isJWTInvalid(token) {
export default async function authUser(context, destiny) {
const { req, res } = context

const invalidToken = await isJWTInvalid(req.cookies.token)
// const invalidToken = true
// const invalidToken = await isJWTInvalid(req.cookies.token)
const invalidToken = true

if (invalidToken) {
cookies.remove('userBD', { path: '/' })
Expand Down
1 change: 1 addition & 0 deletions next/pages/user/[username].js
Original file line number Diff line number Diff line change
Expand Up @@ -1949,6 +1949,7 @@ const Accesses = ({ userInfo }) => {

export default function UserPage({ fullUser }) {
let userData = getUserDataJson()

const router = useRouter()
const { query } = router
const [userInfo, setUserInfo] = useState({})
Expand Down
2 changes: 1 addition & 1 deletion next/pages/user/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function Login() {
}

const fetchToken = async ({ email, password }) => {
const result = await getToken({email: email, password: password})
const result = await getToken({email: "email", password: "password"})

if(result?.tokenAuth === null || result?.errors?.length > 0) return setErrors({login:"E-mail ou senha incorretos."})

Expand Down

0 comments on commit 6db3f70

Please sign in to comment.