Skip to content

Commit 0c54569

Browse files
author
Yang
committed
chore: modal mini
1 parent 20441eb commit 0c54569

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

packages/mini-demo/src/pages/modal/component/basic.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ const reducer = (state, action) => {
5656
};
5757

5858
const Demo = () => {
59-
const myRef = useRef();
6059
const [state, dispatch] = useReducer(reducer, initState);
6160

6261
const toggle = (key) => dispatch({ type: 'visible', key });

packages/zarm/src/modal/demo/basic.mini.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ const reducer = (state, action) => {
5656
};
5757

5858
const Demo = () => {
59-
const myRef = useRef();
6059
const [state, dispatch] = useReducer(reducer, initState);
6160

6261
const toggle = (key) => dispatch({ type: 'visible', key });

packages/zarm/src/modal/methods.mini.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { ImperativeHandler, renderImperatively } from '../utils/dom';
2+
import { ImperativeHandler } from '../utils/dom';
33
import { ModalProps } from './Modal.mini';
44
import { getCustomEventsPath, customEvents } from '../utils/dom/dom.mini';
55

0 commit comments

Comments
 (0)