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

Update src/index.js to make use of nested index.js files #982

Merged
merged 1 commit into from
Jul 1, 2015
Merged

Update src/index.js to make use of nested index.js files #982

merged 1 commit into from
Jul 1, 2015

Conversation

jkruder
Copy link
Contributor

@jkruder jkruder commented Jun 29, 2015

Updated src/index.js to make use of the index files in mixins, styles and utils.

I thought about updated the components (card, table, list) but decided not to for now. If we went the route of exporting the index.js for card/table/list we will have added an additional layer in the import.

Instead of doing

import { Card } from 'material-ui';

we would have to do

import { Card } from 'material-ui';
let { Card } = Card; // or let Card = Card.Card;

…es, utils. Updated index to export table header/footer.
hai-cea pushed a commit that referenced this pull request Jul 1, 2015
Update src/index.js to make use of nested index.js files
@hai-cea hai-cea merged commit f502358 into mui:master Jul 1, 2015
@hai-cea
Copy link
Member

hai-cea commented Jul 1, 2015

Thanks @jkruder !

@jkruder jkruder deleted the index-updates branch July 9, 2015 20:03
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Nov 10, 2020
@zannager zannager added the package: system Specific to @mui/system label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: system Specific to @mui/system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants