Skip to content

Commit

Permalink
fix(ui): Replace curly quotes with square brackets in message components
Browse files Browse the repository at this point in the history
  • Loading branch information
CH1111 committed Feb 10, 2025
1 parent 85ad970 commit e82b189
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface AddToContextMessageContentProps {
const AddToContextMessageContent: React.FC<AddToContextMessageContentProps> = React.memo(
({ nodeType, title, action }) => (
<div className="flex items-center gap-2">
<span>{nodeType}</span><span className="max-w-[200px] truncate">{title}</span>
<span>{nodeType}</span>[<span className="max-w-[200px] truncate">{title}</span>]
<span>{action}</span>
</div>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface DeleteNodeMessageContentProps {
const DeleteNodeMessageContent: React.FC<DeleteNodeMessageContentProps> = React.memo(
({ action, title }) => (
<div className="flex items-center gap-2">
<span>{action}</span><span className="max-w-[200px] truncate">{title}</span>
<span>{action}</span>[<span className="max-w-[200px] truncate">{title}</span>]
</div>
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const useAddToContext = () => {
}

if (isAlreadyAdded) {
void message.warning({
message.warning({
content: React.createElement(AddToContextMessageContent, {
title: nodeTitle,
nodeType: t(`canvas.nodeTypes.${nodeType}`),
Expand All @@ -55,7 +55,7 @@ export const useAddToContext = () => {
// Add to context
contextStore.addContextItem(item);

void message.success({
message.success({
content: React.createElement(AddToContextMessageContent, {
title: nodeTitle || t('common.untitled'),
nodeType: t(`canvas.nodeTypes.${nodeType}`),
Expand Down

0 comments on commit e82b189

Please sign in to comment.