Skip to content

Commit f2b9cca

Browse files
committed
Update index.js
1 parent e07a758 commit f2b9cca

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ export function withContextConsumer (Component, contexts) {
3333
</ContextComponent.Consumer>
3434
);
3535
}
36-
3736
return withName(Component, {...props, ...contextProps, ref})
3837
};
39-
4038
return applyConsumer(Object.entries(contexts));
4139
});
4240
}
@@ -53,10 +51,8 @@ export function withContextProvider (Component, getContexts) {
5351
</ContextComponent.Provider>
5452
);
5553
}
56-
5754
return withName(Component, {...props, ref});
5855
};
59-
6056
return applyProvider(contexts);
6157
});
6258
}

0 commit comments

Comments
 (0)