From b4a676d652e7bb940989549a22bc1dfe867e664a Mon Sep 17 00:00:00 2001 From: aborisov Date: Tue, 26 Sep 2017 11:35:52 +0300 Subject: [PATCH] Switch Close Button from PropType to Flow Props --- src/components/shared/Button/Close.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/components/shared/Button/Close.js b/src/components/shared/Button/Close.js index 8d5ed0de7c..e9e37007ce 100644 --- a/src/components/shared/Button/Close.js +++ b/src/components/shared/Button/Close.js @@ -1,15 +1,15 @@ // @flow -import React, { PropTypes } from "react"; +import React from "react"; import Svg from "../Svg"; import "./Close.css"; -type CloseButtonType = { - handleClick: any, +type Props = { + handleClick: Function, buttonClass?: string, tooltip?: string }; -function CloseButton({ handleClick, buttonClass, tooltip }: CloseButtonType) { +function CloseButton({ handleClick, buttonClass, tooltip }: Props) { return (