Skip to content

Commit

Permalink
Allow createDisabledContainer to take function components
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuykendall committed Oct 24, 2020
1 parent 9a74993 commit 6721ef4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/containers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface IGuardedContainerProps {
isGuarded: boolean;
}

export function createDisabledContainer(WrappedComponent: React.ComponentClass<any>): React.ComponentClass {
export function createDisabledContainer(WrappedComponent: React.ComponentType<any>): React.ComponentType {
@observer
class DisabledContainer extends Component<IDisabledContainerProps> {
public static displayName = `DisabledContainer(${getDisplayName(WrappedComponent)})`;
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "./build",
"paths": { "*": ["src/*", "node_modules/*"] },
"rootDir": "./src",
"sourceMap": true
Expand Down
6 changes: 0 additions & 6 deletions tslint.json

This file was deleted.

0 comments on commit 6721ef4

Please sign in to comment.