Skip to content

Commit

Permalink
Merge pull request #2350 from stakwork/feature/code-viewer-extend
Browse files Browse the repository at this point in the history
feat: extended code viewer for frame and code types
  • Loading branch information
Rassl authored Oct 16, 2024
2 parents 2984fa2 + b27c66d commit 45bf316
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const NodeDetail = ({ label, value, hasAudio, isPlaying, togglePlay }: Props) =>
<AudioButton onClick={togglePlay}>{isPlaying ? <AiPauseIcon /> : <AiPlayIcon />}</AudioButton>
)}
</Text>
{label !== 'Text' ? (
{label !== 'Frame' && label !== 'Code' ? (
<Text className="node-detail__value">{highlightSearchTerm(String(value), searchTerm)}</Text>
) : (
<SyntaxHighlighter language="javascript" style={okaidia}>
Expand Down

0 comments on commit 45bf316

Please sign in to comment.