Rename PageLayout to SettingLayout (#3123)

* rename PageLayout to SettingLayout

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* expose to extensions

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-06-21 10:50:40 +03:00
1 parent adf1251bbd
commit 48e278c71b
8 files changed
+138 -110

No files matched your search

@@ -25,7 +25,6 @@ import React from "react";
import { observable, makeObservable } from "mobx";
import type { RouteComponentProps } from "react-router";
import { observer } from "mobx-react";
import { PageLayout } from "../layout/page-layout";
import { navigation } from "../../navigation";
import { Tabs, Tab } from "../tabs";
import type { CatalogEntity } from "../../api/catalog-entity";
@@ -33,6 +32,7 @@ import { catalogEntityRegistry } from "../../api/catalog-entity-registry";
import { EntitySettingRegistry } from "../../../extensions/registries";
import type { EntitySettingsRouteParams } from "../../../common/routes";
import { groupBy } from "lodash";
import { SettingLayout } from "../layout/setting-layout";
interface Props extends RouteComponentProps<EntitySettingsRouteParams> {
}
@@ -120,10 +120,9 @@ export class EntitySettings extends React.Component<Props> {
const activeSetting = this.menuItems.find((setting) => setting.id === this.activeTab);
return (
<PageLayout
<SettingLayout
className="CatalogEntitySettings"
navigation={this.renderNavigation()}
showOnTop={true}
contentGaps={false}
>
<section>
@@ -132,7 +131,7 @@ export class EntitySettings extends React.Component<Props> {
<activeSetting.components.View entity={this.entity} key={activeSetting.title} />
</section>
</section>
</PageLayout>
</SettingLayout>
);
}
}