feat: conditionally render last two <Divider />
This commit is contained in:
@@ -791,9 +791,6 @@ export const RobotEditPage = ({ handleStart }: RobotSettingsProps) => {
|
|||||||
navigate(basePath);
|
navigate(basePath);
|
||||||
};
|
};
|
||||||
|
|
||||||
const scrapeListLimitFields = renderScrapeListLimitFields();
|
|
||||||
const actionNameFields = renderActionNameFields();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<RobotConfigPage
|
<RobotConfigPage
|
||||||
title={t("robot_edit.title")}
|
title={t("robot_edit.title")}
|
||||||
@@ -824,10 +821,20 @@ export const RobotEditPage = ({ handleStart }: RobotSettingsProps) => {
|
|||||||
onChange={(e) => handleTargetUrlChange(e.target.value)}
|
onChange={(e) => handleTargetUrlChange(e.target.value)}
|
||||||
style={{ marginBottom: "20px" }}
|
style={{ marginBottom: "20px" }}
|
||||||
/>
|
/>
|
||||||
<Divider />
|
{renderScrapeListLimitFields() && (
|
||||||
{renderScrapeListLimitFields()}
|
<>
|
||||||
<Divider />
|
<Divider />
|
||||||
{renderActionNameFields()}
|
{renderScrapeListLimitFields()}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{renderActionNameFields() && (
|
||||||
|
<>
|
||||||
|
<Divider />
|
||||||
|
{renderActionNameFields()}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user