Client: PortalSettings: fix back arrow
This commit is contained in:
parent
fc2b157293
commit
505fa33f95
@ -341,13 +341,6 @@ const SectionHeaderContent = (props) => {
|
||||
},
|
||||
];
|
||||
|
||||
const pathname = location.pathname;
|
||||
|
||||
const isServicePage =
|
||||
pathname.includes("google") ||
|
||||
pathname.includes("nextcloud") ||
|
||||
pathname.includes("onlyoffice");
|
||||
|
||||
return (
|
||||
<StyledContainer isHeaderVisible={isHeaderVisible}>
|
||||
{isHeaderVisible ? (
|
||||
@ -365,7 +358,7 @@ const SectionHeaderContent = (props) => {
|
||||
<LoaderSectionHeader />
|
||||
) : (
|
||||
<HeaderContainer>
|
||||
{!isCategoryOrHeader && arrayOfParams[0] && (
|
||||
{!isCategoryOrHeader && arrayOfParams[0] && isMobile() && (
|
||||
<IconButton
|
||||
iconName={ArrowPathReactSvgUrl}
|
||||
size="17"
|
||||
@ -375,15 +368,6 @@ const SectionHeaderContent = (props) => {
|
||||
/>
|
||||
)}
|
||||
<Headline type="content" truncate={true}>
|
||||
{isMobile() && isServicePage && (
|
||||
<IconButton
|
||||
iconName={ArrowPathReactSvgUrl}
|
||||
size="17"
|
||||
isFill={true}
|
||||
onClick={onBackToParent}
|
||||
className="arrow-button"
|
||||
/>
|
||||
)}
|
||||
{t(header, {
|
||||
organizationName: t("Common:OrganizationName"),
|
||||
})}
|
||||
|
@ -384,7 +384,6 @@ export const settingsTree = [
|
||||
icon: "",
|
||||
link: "google",
|
||||
tKey: "ImportFromGoogle",
|
||||
isCategory: true,
|
||||
},
|
||||
{
|
||||
id: "portal-settings_catalog-nextcloud-data-migration",
|
||||
@ -392,7 +391,6 @@ export const settingsTree = [
|
||||
icon: "",
|
||||
link: "nextcloud",
|
||||
tKey: "ImportFromNextcloud",
|
||||
isCategory: true,
|
||||
},
|
||||
{
|
||||
id: "portal-settings_catalog-onlyoffice-data-migration",
|
||||
@ -400,7 +398,6 @@ export const settingsTree = [
|
||||
icon: "",
|
||||
link: "onlyoffice",
|
||||
tKey: "ImportFromPortal",
|
||||
isCategory: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user