feat : update path props types components import

This commit is contained in:
Ali Josheghani
2024-05-24 15:15:51 +03:30
parent 01c0dcc900
commit 35ad0b9e14
7 changed files with 15 additions and 11 deletions

View File

@@ -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<

View File

@@ -1,4 +1,4 @@
import { ButtonProps } from "../../types/buttonProps";
import { ButtonProps } from "../../types/props";
function Button({ children, onClick, extra }: ButtonProps) {
return (

View File

@@ -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 (

View File

@@ -1,4 +1,4 @@
import { MobileMenuButtonProps } from "../../../../types/mobileMenuButton";
import { MobileMenuButtonProps } from "../../../../types/props";
const MobileMenuButton = ({ isOpen, onClick }: MobileMenuButtonProps) => {
return (

View File

@@ -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);

View File

@@ -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 (