Skip to content

Instantly share code, notes, and snippets.

View BrayansStivens's full-sized avatar
🕶️

BrayansStivens BrayansStivens

🕶️
View GitHub Profile
@BrayansStivens
BrayansStivens / AuthSectorCards
Created June 22, 2024 00:46
app/auth/components/AuthSectorCards.tsx
"use client";
import { useRouter } from "next/navigation";
import SectorCard from "@/components/ui/sectorCard";
import React, { useState, useEffect } from "react";
import { clearStorage } from "@/utils/handles/handleStorage";
const AuthSectorCard: React.FC<{
financial: string[];
otherEntities: [];
solidarity: string[];
@BrayansStivens
BrayansStivens / MobileMenu
Created June 22, 2024 00:31
components/ui/nav/components/MobileMenu.tsx
import Image from "next/image";
import { AiOutlineClose } from "react-icons/ai";
import AuthButton from "./AuthButton";
import HomeButton from "./HomeButton";
interface MobileMenuProps {
menuOpen: boolean;
toggleMenu: () => void;
showAuthButton: boolean;
handleAuth: () => void;
@BrayansStivens
BrayansStivens / MobileMenu
Created June 22, 2024 00:30
components/ui/nav/components/MobileMenu.tsx
import Image from "next/image";
import { AiOutlineClose } from "react-icons/ai";
import AuthButton from "./AuthButton";
import HomeButton from "./HomeButton";
interface MobileMenuProps {
menuOpen: boolean;
toggleMenu: () => void;
showAuthButton: boolean;
handleAuth: () => void;
@BrayansStivens
BrayansStivens / nav
Created June 22, 2024 00:29
components/ui/nav/index.tsx
"use client";
import React, { useEffect, useState } from "react";
import Image from "next/image";
import { usePathname, useRouter } from "next/navigation";
import { AiOutlineMenu } from "react-icons/ai";
import { useMenuState } from "./hooks/useMenuState";
import AuthButton from "./components/AuthButton";
import MobileMenu from "./components/MobileMenu";