From 58d0292ef9dbbc1aca09a8dfdbdf3b85e7e2535d Mon Sep 17 00:00:00 2001 From: Jan Stabenow Date: Fri, 24 May 2024 17:10:19 +0200 Subject: [PATCH] Mod reduces complexity --- src/misc/modals/Hint.js | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/misc/modals/Hint.js b/src/misc/modals/Hint.js index cfd2c5d..317c034 100644 --- a/src/misc/modals/Hint.js +++ b/src/misc/modals/Hint.js @@ -55,16 +55,16 @@ const Stream = function (props) { }; return ( - - + + {/* - + */} {props.stream.type === 'audio' ? ( - + Codec} value={props.stream.codec} onChange={handleChange('codec')}> H264 HEVC @@ -142,21 +142,23 @@ const Streams = function (props) { {props.streams.map((stream, index) => ( - - Stream {stream.stream} + + {stream.type} - {index > 0 && ( - - )} ))} - + {props.streams.length < 2 && ( + + )} + {props.streams.length === 2 && ( + + )} );