feat : formating code by prettier

This commit is contained in:
alij
2024-07-03 14:56:29 +03:30
parent 790ed79605
commit efa148c7ac
19 changed files with 289 additions and 84 deletions

11
src/types/props.d.ts vendored
View File

@@ -35,9 +35,6 @@ export interface MobileMenuButtonProps {
onClick: () => void;
}
// begin NavbarLink.tsx
import { NavLinkProps } from "react-router-dom";
export interface NavbarLinkProps {
to: string;
children: React.ReactNode;
@@ -52,7 +49,6 @@ export interface NavData {
// begin ListTutorial.tsx
import React, {
ButtonHTMLAttributes,
Component,
Dispatch,
InputHTMLAttributes,
ReactNode,
@@ -130,6 +126,8 @@ export interface ConfigItemProps {
textCopy: string;
maxTraffic: number | "unlimited";
traffic: number;
type: string;
categoryId: number;
}
// نوع Item برای آیتم‌های داخل Dropdown
@@ -203,6 +201,8 @@ type Config = {
show_traffic: boolean;
max_traffic: number;
traffic: number;
type: string;
category_id: number;
};
// تعریف تایپ داده‌های برگشتی
@@ -225,7 +225,8 @@ interface ProfileDetailsProps {
isLoading: boolean;
isFetching: boolean;
error: Error | AxiosError | null;
userTitle: string;
userTitle?: string;
categoryId?: number;
}
interface ScrollLinkProps {