fix: remove redundant modal descriptions (#7121)

Updated text area modal to only have title
This commit is contained in:
Lucas Oliveira 2025-03-18 11:30:56 -03:00 committed by GitHub
commit 51d95fa9fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View file

@ -164,7 +164,7 @@ export const FLOW_NOT_BUILT_DESCRIPTION =
* The base text for subtitle of Text Dialog
* @constant
*/
export const TEXT_DIALOG_SUBTITLE = "Edit text content.";
export const TEXT_DIALOG_TITLE = "Edit text content";
/**
* The base text for subtitle of Import Dialog

View file

@ -4,7 +4,7 @@ import { Button } from "../../components/ui/button";
import { Textarea } from "../../components/ui/textarea";
import {
EDIT_TEXT_PLACEHOLDER,
TEXT_DIALOG_SUBTITLE,
TEXT_DIALOG_TITLE,
} from "../../constants/constants";
import { textModalPropsType } from "../../types/components";
import { handleKeyDown } from "../../utils/reactflowUtils";
@ -45,17 +45,17 @@ export default function ComponentTextModal({
<BaseModal.Trigger disable={disabled} asChild>
{children}
</BaseModal.Trigger>
<BaseModal.Header description={TEXT_DIALOG_SUBTITLE}>
<BaseModal.Header>
<div className="flex w-full items-start gap-3">
<div className="flex">
<span className="pr-2" data-testid="modal-title">
{TEXT_DIALOG_SUBTITLE}
</span>
<IconComponent
name={"FileText"}
className="h-6 w-6 pl-1 text-primary"
className="h-6 w-6 pr-1 text-primary"
aria-hidden="true"
/>
<span className="pl-2" data-testid="modal-title">
{TEXT_DIALOG_TITLE}
</span>
</div>
{password !== undefined && (
<div>