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:
parent
e6cc29ab5c
commit
34ceba97bb
@ -1,3 +0,0 @@
|
||||
.ButtonPannel button:not(:last-of-type) {
|
||||
margin-right: $margin;
|
||||
}
|
||||
@ -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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@ -1,2 +1 @@
|
||||
export * from "./button";
|
||||
export * from "./button-panel";
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user