Skip to content

Commit 35a0b58

Browse files
christianalfonihenri-hulski
authored andcommitted
fix: cleanup
1 parent ee7dce5 commit 35a0b58

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

packages/overmind-devtools-client/src/components/Action/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ const Action: React.FunctionComponent<Props> = ({
2323
const state = useAppState()
2424
const operatorsByPath = getOperatorsByPath(action)
2525

26-
console.log('WUT?', inline, action)
27-
2826
function renderOperators(operatorsByPath: OperatorsByPath) {
2927
return operatorsByPath.map((operatorByPath, index) => {
3028
const flushReference =
@@ -42,7 +40,9 @@ const Action: React.FunctionComponent<Props> = ({
4240
}}
4341
>
4442
<ActionOperator
45-
parentPath={parentPath || action.path}
43+
parentPath={
44+
parentPath ? parentPath.concat(action.path) : action.path
45+
}
4646
operator={operatorByPath.operator}
4747
flush={flush}
4848
value={operatorByPath.value}

packages/overmind-devtools-client/src/components/ActionOperator/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ const ActionOperator: React.FunctionComponent<Props> = ({
3333
const state = useAppState()
3434
const delimiter = state.currentApp.delimiter
3535

36-
console.log('OPERATOR', operator)
37-
3836
return (
3937
<div className={actionStyles.pipe}>
4038
<div className={styles.operator}>

packages/overmind-devtools-client/src/components/History/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ import { useAppState } from '../../overmind'
2323
const History: React.FunctionComponent = () => {
2424
const state = useAppState()
2525

26-
console.log('WTF', state.history)
27-
2826
return (
2927
<div className={styles.wrapper}>
3028
{state.history.map((record, index) => {
@@ -37,7 +35,7 @@ const History: React.FunctionComponent = () => {
3735
<div className={styles.label}>
3836
<FaDatabase />
3937
</div>
40-
<div className={styles.effectPath}>N/A</div>
38+
<div className={styles.effectPath}>no action</div>
4139
<div className={styles.mutationType}>set</div>
4240
<div className={styles.mutationPath}>
4341
{stateRecord.data.path.join('.')}

packages/overmind-devtools-client/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Provider } from 'overmind-react'
55
import { createRoot } from 'react-dom/client'
66

77
import Devtools from './components/Devtools'
8-
import { config, useActions, useAppState } from './overmind'
8+
import { config } from './overmind'
99
import { css } from './theme'
1010

1111
injectGlobal`

packages/overmind-devtools-client/src/overmind/TODO.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)