Commit dbb6ef00 authored by timel's avatar timel

fix: small

parent 2643ef1a
...@@ -34,19 +34,7 @@ const defaultProps: Omit< ...@@ -34,19 +34,7 @@ const defaultProps: Omit<
const localStore = proxy(defaultProps); const localStore = proxy(defaultProps);
export const SelectActionsModal: React.FC = () => { export const SelectActionsModal: React.FC = () => {
const { const snap = useSnapshot(localStore);
isOpen,
min,
max,
single,
selecteds,
selectables,
mustSelects,
cancelable,
finishable,
totalLevels,
overflow,
} = useSnapshot(localStore);
const onSubmit = (options: Snapshot<Option[]>) => { const onSubmit = (options: Snapshot<Option[]>) => {
const values = options.map((option) => option.response!); const values = options.map((option) => option.response!);
...@@ -71,17 +59,7 @@ export const SelectActionsModal: React.FC = () => { ...@@ -71,17 +59,7 @@ export const SelectActionsModal: React.FC = () => {
return ( return (
<SelectCardsModal <SelectCardsModal
{...{ {...{
isOpen, ...snap,
min,
max,
single,
selecteds,
selectables,
mustSelects,
cancelable,
finishable,
totalLevels,
overflow,
onSubmit, onSubmit,
onFinish, onFinish,
onCancel, onCancel,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment