-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve NodeOutputField and NodeInputField components (#3235)
* remove refhtml and create new component * refactor: refactor NodeOutputField component in GenericNode * refactor: refactor NodeOutputField component in GenericNode * refactor: refactor NodeInputField component in GenericNode * refactor: remove output shortcut * [autofix.ci] apply automated fixes * refactor: remove console.log statements in NodeOutputField component * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
120786f
commit 62b1b88
Showing
5 changed files
with
85 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/frontend/src/CustomNodes/GenericNode/components/NodeInputInfo/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export default function NodeInputInfo({ info }: { info: string }) { | ||
return ( | ||
<div className="h-full w-full break-words"> | ||
{info.split("\n").map((line, index) => ( | ||
<p key={index} className="block"> | ||
{line} | ||
</p> | ||
))} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters