fix: remove redundant modal descriptions (#7121)
Updated text area modal to only have title
This commit is contained in:
parent
ab000fe908
commit
51d95fa9fe
2 changed files with 7 additions and 7 deletions
|
|
@ -164,7 +164,7 @@ export const FLOW_NOT_BUILT_DESCRIPTION =
|
||||||
* The base text for subtitle of Text Dialog
|
* The base text for subtitle of Text Dialog
|
||||||
* @constant
|
* @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
|
* The base text for subtitle of Import Dialog
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { Button } from "../../components/ui/button";
|
||||||
import { Textarea } from "../../components/ui/textarea";
|
import { Textarea } from "../../components/ui/textarea";
|
||||||
import {
|
import {
|
||||||
EDIT_TEXT_PLACEHOLDER,
|
EDIT_TEXT_PLACEHOLDER,
|
||||||
TEXT_DIALOG_SUBTITLE,
|
TEXT_DIALOG_TITLE,
|
||||||
} from "../../constants/constants";
|
} from "../../constants/constants";
|
||||||
import { textModalPropsType } from "../../types/components";
|
import { textModalPropsType } from "../../types/components";
|
||||||
import { handleKeyDown } from "../../utils/reactflowUtils";
|
import { handleKeyDown } from "../../utils/reactflowUtils";
|
||||||
|
|
@ -45,17 +45,17 @@ export default function ComponentTextModal({
|
||||||
<BaseModal.Trigger disable={disabled} asChild>
|
<BaseModal.Trigger disable={disabled} asChild>
|
||||||
{children}
|
{children}
|
||||||
</BaseModal.Trigger>
|
</BaseModal.Trigger>
|
||||||
<BaseModal.Header description={TEXT_DIALOG_SUBTITLE}>
|
<BaseModal.Header>
|
||||||
<div className="flex w-full items-start gap-3">
|
<div className="flex w-full items-start gap-3">
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
<span className="pr-2" data-testid="modal-title">
|
|
||||||
{TEXT_DIALOG_SUBTITLE}
|
|
||||||
</span>
|
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name={"FileText"}
|
name={"FileText"}
|
||||||
className="h-6 w-6 pl-1 text-primary"
|
className="h-6 w-6 pr-1 text-primary"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
|
<span className="pl-2" data-testid="modal-title">
|
||||||
|
{TEXT_DIALOG_TITLE}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{password !== undefined && (
|
{password !== undefined && (
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue