Skip to content

Commit f267d13

Browse files
committed
update imports
1 parent 436eb43 commit f267d13

File tree

7 files changed

+4
-6
lines changed

7 files changed

+4
-6
lines changed

cypress/support/component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import '@cypress/code-coverage/support';
1919
import './commands';
2020
import './style.css';
21+
import '../../src/style.css';
2122

2223
// Alternatively you can use CommonJS syntax:
2324
// require('./commands')

src/addons/use-notification-center/NotificationCenter.cy.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
NotificationCenterItem,
66
UseNotificationCenterParams,
77
useNotificationCenter
8-
} from 'react-toastify/notification-center';
8+
} from './useNotificationCenter';
99

1010
function TestComponent(props: UseNotificationCenterParams) {
1111
const [content, setContent] = React.useState('');

src/components/CloseButton.cy.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import '../style.css';
32
import { CloseButton } from './CloseButton';
43

54
describe('CloseButton', () => {

src/components/Icons.cy.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import '../style.css';
32
import { TypeOptions } from '../types';
43
import { IconParams, getIcon } from './Icons';
54

src/components/ProgressBar.cy.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import '../style.css';
32
import { Theme } from '../types';
43
import { ProgressBar } from './ProgressBar';
54

src/components/Toast.cy.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import '../style.css';
32
import { DraggableDirection, ToastProps } from '../types';
43
import { Default } from '../utils';
54
import { Toast } from './Toast';

src/core/toast.cy.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
2-
import { toast, ToastContainer } from 'react-toastify';
2+
import { ToastContainer } from '../components';
3+
import { toast } from './toast';
34

45
beforeEach(() => {
56
cy.viewport('macbook-15');

0 commit comments

Comments
 (0)