Skip to content

Commit

Permalink
refactor: *
Browse files Browse the repository at this point in the history
  • Loading branch information
ruilopesm committed Nov 11, 2023
1 parent b700035 commit c83289e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
20 changes: 5 additions & 15 deletions components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faBars, faTimes } from "@fortawesome/free-solid-svg-icons";

import { useAuth } from "@context/Auth";
import Return from "@components/Return";

const roleNavigations = {
sponsor: ["scanner", "visitors"],
Expand Down Expand Up @@ -66,26 +67,15 @@ export default function Layout({ title, description, children }: LayoutProps) {
{/* NAVBAR */}
<aside className="inset-y-0 hidden w-72 overflow-y-scroll border-r-2 bg-secondary px-8 py-5 lg:fixed lg:flex lg:flex-col">
<div className="flex flex-1">
<nav className="mt-10 flex flex-col">
<Link href="/">
<a className="font-iregular text-quinary">&lt;</a>
</Link>

<div className="my-4">
<nav className="mt-8 flex flex-col">
<Link href="/" className="pb-8">
<Image
src="/images/sei-logo.svg"
alt="SEI Logo"
width="220"
height="120"
/>
</div>

{user.type === "attendee" && (
<div className="text-md mt-2 mb-4 text-white">
<p className="font-ibold">You have:</p>
<p className="font-iregular">💰 {user.token_balance} Tokens</p>
</div>
)}
</Link>

{links.map((link) => (
<ActiveLink
Expand Down Expand Up @@ -173,7 +163,7 @@ function MobileNavbar({
>
<aside className="flex h-full flex-col justify-between">
<div>
<div className="flex justify-between">
<div className="flex items-center justify-between">
<Link href="/" className="font-iregular text-quinary">
<Image
src="/images/sei-logo.svg"
Expand Down
2 changes: 1 addition & 1 deletion components/Return/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Return({ componentStyle }: Props) {
href="/"
className={`${componentStyle} flex items-center justify-center font-iregular text-quinary sm:absolute`}
>
&lt;
&lt; Back to SEI website
</Link>
);
}

0 comments on commit c83289e

Please sign in to comment.