-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[docs] Add ExpansionPanels TypeScript Demo #15162
Conversation
Adherentman
commented
Apr 2, 2019
- I have followed (at least) the PR section of the contributing guide.
No bundle size changes comparing 240dc18...b254a2c |
@@ -67,7 +67,7 @@ function DetailedExpansionPanel(props) { | |||
<ExpansionPanelDetails className={classes.details}> | |||
<div className={classes.column} /> | |||
<div className={classes.column}> | |||
<Chip label="Barbados" className={classes.chip} onDelete={() => {}} /> | |||
<Chip label="Barbados" onDelete={() => {}} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 👍
docs/src/pages/demos/expansion-panels/ControlledExpansionPanels.tsx
Outdated
Show resolved
Hide resolved
@@ -106,7 +108,7 @@ class RouterBreadcrumbs extends React.Component { | |||
<List component="nav"> | |||
<ListItemLink to="/inbox" open={this.state.open} onClick={this.handleClick} /> | |||
<Collapse in={this.state.open} timeout="auto" unmountOnExit> | |||
<List component="div" disablePadding> | |||
<List component={'div'} disablePadding> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something we could improve in the TypeScript to JavaScript logic generation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a topic for a different pull request. I was only raising the potential.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's fine with prettier it's fine with me
const [expanded, setExpanded] = React.useState<string | null>(null); I use u suggest, but i got type and lint error:
|
So, we are using |
nice, I try
no error! |
@Adherentman That's one approach. I think that we can simplify the implementation here. cc @eps1lon. We could replace the usage of false with null. |
docs/src/pages/demos/expansion-panels/ControlledExpansionPanels.tsx
Outdated
Show resolved
Hide resolved
…s.tsx Co-Authored-By: Adherentman <adherentxu@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Adherentman Could you rebase next
again? Looks like this PR was based on #15139
…s.tsx Co-Authored-By: Adherentman <adherentxu@gmail.com>
…-ui into expansion-panels-ts
yes, finished |
Doesn't look like it. Did you fetch the upstream before rebasing? If the rebase was successful there shouldn't be any |
I created a new pr. Because the previous repo was deleted by me. . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must be the github UI then. Local comparison is clean.
How can I do? |
You don't need to do anything. PR is in a good state. |
nice, Thank you |
@Adherentman Thanks for sticking with it. Much appreciated, thanks! |