feat : update path props types components import
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { AlertProps, MessageType } from "../../types/alertProps";
|
||||
import { AlertProps, MessageType } from "../../types/props";
|
||||
|
||||
const Alert = ({ children, type = "info", message }: AlertProps) => {
|
||||
const types: Record<
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ButtonProps } from "../../types/buttonProps";
|
||||
import { ButtonProps } from "../../types/props";
|
||||
|
||||
function Button({ children, onClick, extra }: ButtonProps) {
|
||||
return (
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// src/components/Header/Navbar/MobileMenu.tsx
|
||||
import { MobileMenuProps } from "../../../../types/mobileMenu";
|
||||
import { MobileMenuProps } from "../../../../types/props";
|
||||
import NavbarLink from "./NavbarLink";
|
||||
const MobileMenu = ({ isOpen, toggleMenu, routes }: MobileMenuProps) => {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MobileMenuButtonProps } from "../../../../types/mobileMenuButton";
|
||||
import { MobileMenuButtonProps } from "../../../../types/props";
|
||||
|
||||
const MobileMenuButton = ({ isOpen, onClick }: MobileMenuButtonProps) => {
|
||||
return (
|
||||
|
||||
@@ -6,7 +6,7 @@ import NavbarLink from "./NavbarLink";
|
||||
import router from "../../../../routes/routes";
|
||||
import Button from "../../../button";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Route } from "../../../../types/routes";
|
||||
import { Route } from "../../../../types/props";
|
||||
|
||||
const Navbar = () => {
|
||||
const [isOpen, setIsOpen] = useState<boolean>(false);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { NavLink } from "react-router-dom";
|
||||
import { NavbarLinkProps, NavData } from "../../../../types/navbarLink";
|
||||
import { NavbarLinkProps, NavData } from "../../../../types/props";
|
||||
|
||||
const NavbarLink = ({ to, children, onClick }: NavbarLinkProps) => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user