1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

remove ButtonPanel

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-02-08 08:47:04 -05:00
parent e6cc29ab5c
commit 34ceba97bb
4 changed files with 3 additions and 20 deletions

View File

@ -1,3 +0,0 @@
.ButtonPannel button:not(:last-of-type) {
margin-right: $margin;
}

View File

@ -1,13 +0,0 @@
import "./button-panel.scss";
import React from "react";
export function ButtonPannel(props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) {
return (
<>
<br />
<div className="ButtonPannel flex row align-right box grow">
{props.children}
</div>
</>
);
}

View File

@ -1,2 +1 @@
export * from "./button";
export * from "./button-panel";

View File

@ -2,7 +2,7 @@ import React from "react";
import { ipcRenderer, IpcRendererEvent } from "electron";
import { areArgsUpdateAvailableFromMain, UpdateAvailableChannel, onCorrect, UpdateAvailableFromMain, BackchannelArg } from "../../common/ipc";
import { Notifications, notificationsStore } from "../components/notifications";
import { Button, ButtonPannel } from "../components/button";
import { Button } from "../components/button";
import { isMac } from "../../common/vars";
import * as uuid from "uuid";
@ -37,10 +37,10 @@ function UpdateAvailableHandler(event: IpcRendererEvent, ...[backchannel, update
<>
<b>Update Available</b>
<p>Version {updateInfo.version} of Lens IDE is now available. Would you like to update?</p>
<ButtonPannel>
<div className="flex gaps row align-left box grow">
<RenderYesButtons backchannel={backchannel} notificationId={notificationId} />
<Button active outlined label="No" onClick={() => sendToBackchannel(backchannel, notificationId, { doUpdate: false })} />
</ButtonPannel>
</div>
</>
), {
id: notificationId,