Skip to content

Commit

Permalink
better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Oct 22, 2024
1 parent c21b4eb commit d2daeb8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/TodoApp/ToggleAll.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { toggleAll, useToggleAll } from "./store/actions";
import { toggleAll, useToggleAll } from "./store/toolbar";
import { useZeroCount } from "./store/todos";

// The component to toggle all todos.
Expand Down
4 changes: 2 additions & 2 deletions examples/TodoApp/Actions.tsx → examples/TodoApp/Toolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Filter from "./Filter";
import { addTodo, clearCompleted } from "./store/actions";
import { addTodo, clearCompleted } from "./store/toolbar";
import { useZeroDone } from "./store/todos";
import ToggleAll from "./ToggleAll";

export default function Actions() {
export default function Toolbar() {
return (
<div className="flex gap-1">
<ToggleAll />
Expand Down
4 changes: 2 additions & 2 deletions examples/TodoApp/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Actions from "./Actions";
import Toolbar from "./Toolbar";
import Title from "./Title";
import TodoList from "./TodoList";

export default function TodoApp() {
return (
<>
<Title />
<Actions />
<Toolbar />
<TodoList />
</>
);
Expand Down
File renamed without changes.

0 comments on commit d2daeb8

Please sign in to comment.