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 lodash / react imports #722

Merged
merged 3 commits into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/pages/components/image/demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { Image, View } from '@aws-amplify/ui-react';
import { StylePropControls } from '@/components/StylePropControls';
import { ImagePropControls } from '@/components/ImagePropControls';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { render, screen } from '@testing-library/react';
import { Alert } from '../Alert';
import { ComponentClassNames } from '../../shared';
import { ComponentPropsToStylePropsMap } from '../../types';
import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';

describe('Alert: ', () => {
it('can render Alert variations', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react';
import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';

import { Collection } from '../Collection';
import { ComponentPropsToStylePropsMap } from '../../types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react';
import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';

import {
ComponentPropsToStylePropsMap,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen, waitFor } from '@testing-library/react';
import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';

import { Grid } from '../Grid';
import { View } from '../../View';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';
import { render, screen } from '@testing-library/react';

import { Heading } from '../Heading';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';
import { fireEvent, render, screen } from '@testing-library/react';

import { Image } from '../Image';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react';
import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';
import { ComponentClassNames } from '../../shared';
import { ComponentPropsToStylePropsMap } from '../../types';
import { Link } from '../Link';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/primitives/Rating/RatingIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import classNames from 'classnames';
import { Property } from 'csstype';
import { View } from '../View';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Rating } from '../Rating';
import { render, screen } from '@testing-library/react';
import { ComponentClassNames } from '../../shared';
import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';

describe('Rating: ', () => {
let customIcon;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';

import { SwitchField } from '../SwitchField';
import { ComponentClassNames } from '../../shared';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/primitives/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import {
Root,
List,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Tabs, TabItem } from '../Tabs';
import { Text } from '../../Text';
import { ComponentClassNames } from '../../shared';
import { ComponentPropsToStylePropsMap } from '../../types';
import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';

describe('Tabs: ', () => {
it('can render custom classnames', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';
import { render, screen } from '@testing-library/react';

import { Text } from '../Text';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/primitives/View/View.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { useNonStyleProps, usePropStyles } from '../shared/styleUtils';
import {
ElementType,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

import { kebabCase } from 'lodash';
import kebabCase from 'lodash/kebabCase';
import { render, screen } from '@testing-library/react';

import { ComponentPropsToStylePropsMap } from '../../types';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/primitives/types/input.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { Sizes } from './base';
import { FieldVariations } from './field';
import { ViewProps } from './view';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/primitives/types/link.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { ViewProps } from './view';

export interface LinkOptions {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/primitives/types/tabs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';

import { BaseComponentProps } from './base';
import { BaseStyleProps } from './style';
Expand Down