Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix: Utilize tree shaking for lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
kylealwyn committed Aug 2, 2018
1 parent e31bde6 commit ff1d442
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Form/Checkbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import capitalize from 'lodash/capitalize';
import { capitalize } from 'lodash';
import PropTypes from 'prop-types';
import Icon from '../Icon';
import FormError from '../Form/FormError';
Expand Down
2 changes: 1 addition & 1 deletion src/ThemeProvider/ThemeProvider.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { ThemeProvider as SCThemeProvider } from 'styled-components';
import merge from 'lodash/merge';
import { merge } from 'lodash';
import defaultTheme from '../theme';

const ThemeProvider = props => {
Expand Down
2 changes: 1 addition & 1 deletion src/theme.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import merge from 'lodash/merge';
import { merge } from 'lodash';
import { lighten } from 'polished';

export default (overrides = {}) => {
Expand Down
3 changes: 1 addition & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import get from 'lodash/get';
import kebabCase from 'lodash/kebabCase';
import { get, kebabCase } from 'lodash';
import styled from 'styled-components';

export const getFromTheme = (theme, lookup, fallback) => get(theme, lookup, fallback);
Expand Down

0 comments on commit ff1d442

Please sign in to comment.