mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 21:45:43 +01:00
renaming
This commit is contained in:
@@ -3,7 +3,7 @@ import * as React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import Modal from "./Modal";
|
||||
|
||||
type ButtonType = {
|
||||
type Button = {
|
||||
label: string,
|
||||
onClick: () => void | null
|
||||
};
|
||||
@@ -11,11 +11,11 @@ type ButtonType = {
|
||||
type Props = {
|
||||
title: string,
|
||||
message: string,
|
||||
buttons: ButtonType[]
|
||||
buttons: Button[]
|
||||
};
|
||||
|
||||
class ConfirmAlert extends React.Component<Props> {
|
||||
handleClickButton = (button: ButtonType) => {
|
||||
handleClickButton = (button: Button) => {
|
||||
if (button.onClick) {
|
||||
button.onClick();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user