Skip to content

Commit

Permalink
chore: modal mini
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang committed Dec 19, 2023
1 parent 20441eb commit 0c54569
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion packages/mini-demo/src/pages/modal/component/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const reducer = (state, action) => {
};

const Demo = () => {
const myRef = useRef();
const [state, dispatch] = useReducer(reducer, initState);

const toggle = (key) => dispatch({ type: 'visible', key });
Expand Down
1 change: 0 additions & 1 deletion packages/zarm/src/modal/demo/basic.mini.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const reducer = (state, action) => {
};

const Demo = () => {
const myRef = useRef();
const [state, dispatch] = useReducer(reducer, initState);

const toggle = (key) => dispatch({ type: 'visible', key });
Expand Down
2 changes: 1 addition & 1 deletion packages/zarm/src/modal/methods.mini.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { ImperativeHandler, renderImperatively } from '../utils/dom';
import { ImperativeHandler } from '../utils/dom';
import { ModalProps } from './Modal.mini';
import { getCustomEventsPath, customEvents } from '../utils/dom/dom.mini';

Check warning on line 4 in packages/zarm/src/modal/methods.mini.tsx

View check run for this annotation

Codecov / codecov/patch

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

Added line #L4 was not covered by tests

Expand Down

0 comments on commit 0c54569

Please sign in to comment.