visual fixes

master
Tudor Stanciu 2021-05-16 17:53:42 +03:00
parent e7696170a0
commit be36ec6b7e
3 changed files with 10 additions and 3 deletions

View File

@ -26,7 +26,12 @@ const ForwardOptionsAdvancedComponent = ({ options }) => {
<br />
</>
)}
{options.keyOverwrite && <KeyOverwriteCard data={options.keyOverwrite} />}
{options.keyOverwrite && (
<>
<KeyOverwriteCard data={options.keyOverwrite} />
<br />
</>
)}
</>
);
};

View File

@ -4,6 +4,7 @@ import ExpandableCard from "../../../../../../components/common/ExpandableCard";
import { useTranslation } from "react-i18next";
import FindReplaceIcon from "@material-ui/icons/FindReplace";
import KeyOverwriteSummary from "./KeyOverwriteSummary";
import AdvancedSettingsComponent from "../advancedSettings/AdvancedSettingsComponent";
const KeyOverwriteCard = ({ data }) => {
const { t } = useTranslation();
@ -14,7 +15,7 @@ const KeyOverwriteCard = ({ data }) => {
title={t("Forward.Options.KeyOverwrite.Label")}
subtitle={t("Forward.Options.KeyOverwrite.Tooltip")}
Summary={<KeyOverwriteSummary data={data} />}
Content={<div>CONTENT...</div>}
Content={<AdvancedSettingsComponent data={data.advancedSettings} />}
/>
);
};

View File

@ -4,6 +4,7 @@ import ExpandableCard from "../../../../../../components/common/ExpandableCard";
import { useTranslation } from "react-i18next";
import ThreeSixtyIcon from "@material-ui/icons/ThreeSixty";
import PathOverwriteSummary from "./PathOverwriteSummary";
import AdvancedSettingsComponent from "../advancedSettings/AdvancedSettingsComponent";
const PathOverwriteCard = ({ data }) => {
const { t } = useTranslation();
@ -14,7 +15,7 @@ const PathOverwriteCard = ({ data }) => {
title={t("Forward.Options.PathOverwrite.Label")}
subtitle={t("Forward.Options.PathOverwrite.Tooltip")}
Summary={<PathOverwriteSummary data={data} />}
Content={<div>CONTENT...</div>}
Content={<AdvancedSettingsComponent data={data.advancedSettings} />}
/>
);
};