diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index ae6c6f9c..470fd845 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -177,7 +177,7 @@ export const RightSidePanel = () => { {browserSteps.map(step => ( { - step.type === 'text' ? ( + step.type === 'text' && ( <> { )} - ) : ( - step.type === 'screenshot' ? ( - - - - {`Take ${step.fullPage ? 'Fullpage' : 'Visible Part'} Screenshot`} - + )} + {step.type === 'screenshot' && ( + + + + {`Take ${step.fullPage ? 'Fullpage' : 'Visible Part'} Screenshot`} + + + )} + {step.type === 'list' && ( + <> + List Selected Successfully + {Object.entries(step.fields).map(([key, field]) => ( + + {}} + fullWidth + margin="normal" + InputProps={{ + startAdornment: ( + + + + ) + }} + /> + + + + ) + }} + /> - ) : ( - step.type === 'list' && step.listSelector && ( - <> - - List Selected Successfully - - {Object.keys(step.fields).length > 0 && Object.entries(step.fields).map(([key, field]) => ( - - { }} - fullWidth - margin="normal" - InputProps={{ - startAdornment: ( - - - - ) - }} - /> - - - - ) - }} - /> - - ))} - - ) - ) - ) - } + ))} + + )} ))} ); -}; - -export const ActionDescription = styled.p` - margin-left: 15px; -`; +}; \ No newline at end of file