kaori 4 سال پیش
والد
کامیت
5879a30010
1فایلهای تغییر یافته به همراه1 افزوده شده و 6 حذف شده
  1. 1 6
      packages/app/src/components/Common/ClosableTextInput.tsx

+ 1 - 6
packages/app/src/components/Common/ClosableTextInput.tsx

@@ -81,7 +81,6 @@ const ClosableTextInput: FC<ClosableTextInputProps> = memo((props: ClosableTextI
 
     const alertType = currentAlertInfo.type != null ? currentAlertInfo.type : AlertType.ERROR;
     const alertMessage = currentAlertInfo.message != null ? currentAlertInfo.message : 'Invalid value';
-
     return (
       <p className="text-danger text-center mt-1">{alertType}: {alertMessage}</p>
     );
@@ -101,11 +100,7 @@ const ClosableTextInput: FC<ClosableTextInputProps> = memo((props: ClosableTextI
         onBlur={onBlurHandler}
         autoFocus={false}
       />
-      <div>
-        {/* {currentAlertInfo != null && ( */}
-        <AlertInfo />
-        {/* // )} */}
-      </div>
+      <AlertInfo />
     </div>
   );
 });