mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
1 parent
adf1251bbd
commit
48e278c71b
8 files changed
+138
-110
No files matched your search
@@ -39,12 +39,12 @@ import logger from "../../../main/logger";
|
||||
import { Button } from "../button";
|
||||
import { ConfirmDialog } from "../confirm-dialog";
|
||||
import { DropFileInput, InputValidators } from "../input";
|
||||
import { PageLayout } from "../layout/page-layout";
|
||||
import { Notifications } from "../notifications";
|
||||
import { ExtensionInstallationState, ExtensionInstallationStateStore } from "./extension-install.store";
|
||||
import { Install } from "./install";
|
||||
import { InstalledExtensions } from "./installed-extensions";
|
||||
import { Notice } from "./notice";
|
||||
import { SettingLayout } from "../layout/setting-layout";
|
||||
|
||||
function getMessageFromError(error: any): string {
|
||||
if (!error || typeof error !== "object") {
|
||||
@@ -317,7 +317,7 @@ export async function attemptInstallByInfo({ name, version, requireConfirmation
|
||||
version = json["dist-tags"][version];
|
||||
} else {
|
||||
Notifications.error(<p>The <em>{name}</em> extension does not have a version or tag <code>{version}</code>.</p>);
|
||||
|
||||
|
||||
return disposer();
|
||||
}
|
||||
}
|
||||
@@ -510,7 +510,7 @@ export class Extensions extends React.Component<Props> {
|
||||
|
||||
return (
|
||||
<DropFileInput onDropFiles={installOnDrop}>
|
||||
<PageLayout showOnTop className="Extensions" contentGaps={false}>
|
||||
<SettingLayout className="Extensions" contentGaps={false}>
|
||||
<section>
|
||||
<h1>Extensions</h1>
|
||||
|
||||
@@ -533,7 +533,7 @@ export class Extensions extends React.Component<Props> {
|
||||
uninstall={confirmUninstallExtension}
|
||||
/>
|
||||
</section>
|
||||
</PageLayout>
|
||||
</SettingLayout>
|
||||
</DropFileInput>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user