From e05642df3cf4e659568955f768dec580a1eb3cca Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Wed, 17 Apr 2019 15:33:37 +0300 Subject: [PATCH] withFocusable uses arrow function --- src/common/Focusable/withFocusable.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/common/Focusable/withFocusable.js b/src/common/Focusable/withFocusable.js index f0f4e9096..44685a757 100644 --- a/src/common/Focusable/withFocusable.js +++ b/src/common/Focusable/withFocusable.js @@ -2,13 +2,11 @@ const React = require('react'); const FocusableContext = require('./FocusableContext'); const withFocusable = (Component) => { - return function withFocusable(props) { - return ( - - {focusable => } - - ); - }; + return (props) => ( + + {focusable => } + + ); }; module.exports = withFocusable;