feat : add page profile (private component) and add section , modal for profile page

This commit is contained in:
ali josheghani
2024-06-06 09:55:28 +03:30
parent 18cc4948e6
commit 5300f9ec01
13 changed files with 267 additions and 58 deletions

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

@@ -50,7 +50,7 @@ export interface NavData {
}
// begin ListTutorial.tsx
import { Component, InputHTMLAttributes, SetStateAction } from "react";
import React, { Component, InputHTMLAttributes, SetStateAction } from "react";
export type TutorialList = { id: number; name: string }[];
@@ -92,10 +92,22 @@ export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
type: string;
name?: string;
placeholder?: string;
labelStyle?: string;
extra?: string;
}
export interface MuiModalProps {
isOpenModal: boolean;
setIsOpenModal:SetStateAction
setIsOpenModal: SetStateAction;
title: string;
nameService?: string;
submitText: string;
submitOnClick?: () => void;
children: React.ReactNode;
}
export interface ConfigItemProps {
dateBuy: string;
configName: string;
isDisabled: boolean;
}