From fd1d068149a8e61b8e247cd7a05db261c9977073 Mon Sep 17 00:00:00 2001 From: MadaraUchiha-314 Date: Thu, 30 Apr 2020 11:40:21 +0530 Subject: [PATCH] fix: trying to get the props through the HOC --- src/TextProviderHOC.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TextProviderHOC.jsx b/src/TextProviderHOC.jsx index 971a56c..28bfed1 100644 --- a/src/TextProviderHOC.jsx +++ b/src/TextProviderHOC.jsx @@ -1,7 +1,8 @@ import React from 'react'; import { TextContext } from './TextProvider'; -const withTextProvider = (SomeComponent) => { /* eslint-disable-line no-unused-vars */ +const withTextProvider = (SomeComponent) => { + /* eslint-disable-line no-unused-vars */ class TextProviderHOC extends React.Component { constructor(props) { super(props); @@ -20,6 +21,7 @@ const withTextProvider = (SomeComponent) => { /* eslint-disable-line no-unused-v return ( ); }