Skip to content

Commit 606f1a6

Browse files
chore(demos): fix demos
1 parent 237a190 commit 606f1a6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/demos/react-todomvc/src/components/AddTodo/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useOvermind } from '../../app'
33
import { Wrapper, Input, Button, Form } from './elements'
44

55
function AddTodo() {
6-
const { state, actions } = useOvermind(AddTodo)
6+
const { state, actions } = useOvermind()
77

88
return (
99
<Wrapper>

packages/demos/react-todomvc/src/components/Todo/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useOvermind } from '../../app'
33
import { Item, Completed } from './elements'
44

55
function Todo({ todo }) {
6-
const { actions } = useOvermind(Todo)
6+
const { actions } = useOvermind()
77

88
return (
99
<Item onClick={() => actions.toggleCompleted(todo)}>

packages/demos/react-todomvc/src/components/Todos/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { List } from './elements'
44
import Todo from '../Todo'
55

66
function Todos() {
7-
const { state } = useOvermind(Todos)
7+
const { state } = useOvermind()
88

99
return (
1010
<List>

0 commit comments

Comments
 (0)