mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
gang member popup styling
This commit is contained in:
parent
e5dcb424a2
commit
dc890a908b
@ -36,13 +36,8 @@ export function RecruitPopup(props: IRecruitPopupProps): React.ReactElement {
|
|||||||
removePopup(props.popupId);
|
removePopup(props.popupId);
|
||||||
}
|
}
|
||||||
|
|
||||||
function cancel(): void {
|
|
||||||
removePopup(props.popupId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function onKeyUp(event: React.KeyboardEvent<HTMLInputElement>): void {
|
function onKeyUp(event: React.KeyboardEvent<HTMLInputElement>): void {
|
||||||
if (event.keyCode === 13) recruit();
|
if (event.keyCode === 13) recruit();
|
||||||
if (event.keyCode === 27) cancel();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onChange(event: React.ChangeEvent<HTMLInputElement>): void {
|
function onChange(event: React.ChangeEvent<HTMLInputElement>): void {
|
||||||
@ -64,9 +59,6 @@ export function RecruitPopup(props: IRecruitPopupProps): React.ReactElement {
|
|||||||
<a className="std-button" onClick={recruit}>
|
<a className="std-button" onClick={recruit}>
|
||||||
Recruit Gang Member
|
Recruit Gang Member
|
||||||
</a>
|
</a>
|
||||||
<a className="std-button" onClick={cancel}>
|
|
||||||
Cancel
|
|
||||||
</a>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user