Skip to content
Snippets Groups Projects
Commit 76f559b5 authored by Guilherme Eduardo's avatar Guilherme Eduardo
Browse files

Issue #354: FIX remove logout button on mobile and fix send resources button on mobile

parent 7a257696
Branches
No related tags found
1 merge request!324Issue #354: FIX remove logout button on mobile and fix send resources button on mobile
Pipeline #42686 passed
...@@ -54,6 +54,7 @@ export default function NavigationBar({ mobileSearch }) { ...@@ -54,6 +54,7 @@ export default function NavigationBar({ mobileSearch }) {
if (userData) { if (userData) {
const data = JSON.parse(userData); const data = JSON.parse(userData);
setId(data["id"]); setId(data["id"]);
setLoggedIn(true)
} }
} }
}, []); }, []);
...@@ -91,7 +92,9 @@ export default function NavigationBar({ mobileSearch }) { ...@@ -91,7 +92,9 @@ export default function NavigationBar({ mobileSearch }) {
<nav className="bg-lightGray-HC-dark h-50 outline outline-1 outline-ice-HC-white text-darkGray-HC-white-underline font-light fixed bottom-0 left-0 w-full z-10"> <nav className="bg-lightGray-HC-dark h-50 outline outline-1 outline-ice-HC-white text-darkGray-HC-white-underline font-light fixed bottom-0 left-0 w-full z-10">
<ul className="flex justify-between overflow-x-auto no-scrollbar animate-scrollHint"> <ul className="flex justify-between overflow-x-auto no-scrollbar animate-scrollHint">
{navItems.map((item, index) => { {navItems
.filter(item => loggedIn || (item.label !== "Sair" && item.href !== "/perfil"))
.map((item, index) => {
const isActive = const isActive =
page === item.href || page === item.href ||
pathname === item.href || pathname === item.href ||
......
...@@ -77,10 +77,7 @@ export default function ShareModal({ open, onClose, learningObject, title, type, ...@@ -77,10 +77,7 @@ export default function ShareModal({ open, onClose, learningObject, title, type,
</Button> </Button>
) : null} ) : null}
<Embed open={embed} onClose={() => setEmbed(false)} learningObject={learningObject} /> <Embed open={embed} onClose={() => setEmbed(false)} learningObject={learningObject} />
</div>
{navigator.share ? ( {navigator.share ? (
<div className="mt-2 sm:mt-0 sm:ml-2"> <div className="mt-2 sm:mt-0 sm:ml-2">
<Button <Button
...@@ -96,6 +93,8 @@ export default function ShareModal({ open, onClose, learningObject, title, type, ...@@ -96,6 +93,8 @@ export default function ShareModal({ open, onClose, learningObject, title, type,
</div> </div>
) : ""} ) : ""}
</div> </div>
</div>
<div className="flex justify-center"> <div className="flex justify-center">
<button <button
className="text-sm text-darkGray-HC-white-underline border-main rounded-lg normal-case h-9 font-bold bg-ice-HC-dark hover:bg-lightGray-HC-white px-2 hover:text-darkGray-HC-dark-underline border border-ice-HC-white" className="text-sm text-darkGray-HC-white-underline border-main rounded-lg normal-case h-9 font-bold bg-ice-HC-dark hover:bg-lightGray-HC-white px-2 hover:text-darkGray-HC-dark-underline border border-ice-HC-white"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment