diff --git a/packages/node_modules/overmind-devtools/src/components/ActionOperator/index.tsx b/packages/node_modules/overmind-devtools/src/components/ActionOperator/index.tsx index 8dc766e2..10b960b9 100644 --- a/packages/node_modules/overmind-devtools/src/components/ActionOperator/index.tsx +++ b/packages/node_modules/overmind-devtools/src/components/ActionOperator/index.tsx @@ -1,4 +1,4 @@ -import { createElement, FunctionComponent } from 'react' +import { createElement, FunctionComponent, Fragment } from 'react' import { Operator as OperatorType, EventType, @@ -73,14 +73,18 @@ const ActionOperator: FunctionComponent = ({ ? effect.name + '.' + effect.method : effect.method} - {effect.args.length ? ( - 1 ? effect.args : effect.args[0] - } - /> - ) : null} + + ( + {effect.args.map((arg, argIndex) => ( + + + {argIndex === effect.args.length - 1 ? null : ( + , + )} + + ))} + ) + {effect.result === undefined && !effect.error ? null : ( = ({ > {mutation.path} - 1 - ? mutation.args - : mutation.args[0] - } - /> + {mutation.args.map((arg) => ( + + ))} ) } diff --git a/packages/node_modules/overmind-devtools/src/components/ActionOperator/styles.ts b/packages/node_modules/overmind-devtools/src/components/ActionOperator/styles.ts index 17cb0f06..77530ecc 100644 --- a/packages/node_modules/overmind-devtools/src/components/ActionOperator/styles.ts +++ b/packages/node_modules/overmind-devtools/src/components/ActionOperator/styles.ts @@ -8,9 +8,16 @@ export const operator = css({ cursor: 'default', }) +export const effectArgs = css({ + display: 'flex', + alignItems: 'center', + '> span': { + marginRight: '0.5rem', + }, +}) + export const value = css({ marginLeft: 'auto', - paddingRight: '0.5rem', display: 'flex', alignItems: 'center', })