From 114440f48c67b42f2beeff1db2f96d13ccfe9ec2 Mon Sep 17 00:00:00 2001 From: alij Date: Sun, 9 Jun 2024 22:48:22 -0700 Subject: [PATCH] feat : update btn and modal for better ui --- src/common/modal/index.tsx | 6 ++- src/components/button/index.tsx | 4 +- src/components/progressSpace/index.tsx | 46 +++++++++++-------- .../profile/section/components/ConfigItem.tsx | 12 ++--- .../section/components/ModalConfigDetails.tsx | 9 ++-- src/types/props.d.ts | 2 +- 6 files changed, 46 insertions(+), 33 deletions(-) diff --git a/src/common/modal/index.tsx b/src/common/modal/index.tsx index 6897f01..c9beb56 100644 --- a/src/common/modal/index.tsx +++ b/src/common/modal/index.tsx @@ -54,9 +54,11 @@ export default function MuiModal({ {children} - + - + {submitText && ( + + )} diff --git a/src/components/button/index.tsx b/src/components/button/index.tsx index 26575f4..d9b5dc9 100644 --- a/src/components/button/index.tsx +++ b/src/components/button/index.tsx @@ -3,9 +3,9 @@ import { ButtonProps } from "../../types/props"; function Button({ children, extra, active,...attrs }: ButtonProps) { return ( + )}
{isDisabled && {nameConfig} غیر فعال است } @@ -32,9 +31,11 @@ const ModalConfigDetails = ({
{isDisabled ? ( - +
+ +
) : ( <>