From b3a3162d34f25362f49ecb2398c8bba83e8f4d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= Date: Fri, 1 Feb 2019 11:09:07 +0100 Subject: [PATCH] renaming --- .../packages/ui-components/src/modals/ConfirmAlert.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scm-ui-components/packages/ui-components/src/modals/ConfirmAlert.js b/scm-ui-components/packages/ui-components/src/modals/ConfirmAlert.js index 13d5bae5f8..4192411eb7 100644 --- a/scm-ui-components/packages/ui-components/src/modals/ConfirmAlert.js +++ b/scm-ui-components/packages/ui-components/src/modals/ConfirmAlert.js @@ -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 { - handleClickButton = (button: ButtonType) => { + handleClickButton = (button: Button) => { if (button.onClick) { button.onClick(); }