Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Typescript] Imports for WithWidthProps missing #12989

Closed
spoeck opened this issue Sep 24, 2018 · 2 comments
Closed

[Typescript] Imports for WithWidthProps missing #12989

spoeck opened this issue Sep 24, 2018 · 2 comments

Comments

@spoeck
Copy link

spoeck commented Sep 24, 2018

  • [ x] This is not a v0.x issue.
  • [x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

In version 1.4.1 we imported the WithWidthProps like this:

import withWidth, { WithWidthProps } from '@material-ui/core/withWidth';

And the Components extends the WithWidthProps this way:

export namespace App {
    export interface Props extends RouteComponentProps<void>, WithStyles<typeof styles>, WithWidthProps {
        todoList: Todo[];
    }
}

const history = createBrowserHistory();

class App extends React.Component<App.Props, App.State> {

Current Behavior

The import for WithWidthProps is not working anymore in version 3.1.x.
withWidth still able to import.

Your Environment

Tech Version
Material-UI v3.1.1
React
Browser Chrome
TypeScript 2.8.3
etc.
@spoeck spoeck changed the title Imports for WithWidthProps missing [Typescript] Imports for WithWidthProps missing Sep 24, 2018
@eps1lon
Copy link
Member

eps1lon commented Sep 24, 2018

This was renamed from WithWidthProps to WithWidth in 1.5.0 (#12492).

@spoeck
Copy link
Author

spoeck commented Sep 24, 2018

Upps.
Thanks for your fast answer.

@spoeck spoeck closed this as completed Sep 24, 2018
@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 20, 2022
@zannager zannager added typescript and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants