Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cozy-libs",
"description": "Sharing Helpers for Cozy Application Development",
"description": "Sharing Helpers for Cozy Application Development TEST",
"author": "Cozy",
"license": "MIT",
"homepage": "https://github.com/cozy/cozy-libs#readme",
Expand Down
4 changes: 3 additions & 1 deletion packages/cozy-flags/src/connect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const store = flag.store as unknown as IMicroEE
* Connects a component to the flags. The wrapped component
* will be refreshed when a flag changes.
*/
const connect = <P extends object>(Component: ComponentType<P>): ReactNode => {
const connect = <P extends object>(
Component: ComponentType<P>
): ComponentType<P> => {
class Wrapped extends React.Component<P> {
static displayName: string

Expand Down
Loading
Loading