Skip to content

Commit 2f5ecf1

Browse files
committed
refactor code
1 parent c651641 commit 2f5ecf1

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
- [ ] UI Acceptance -> Workflow
3232

3333
# Session 6
34-
- [x] Unit test (Frontend)
35-
- [x] Test runner -> CI Workflow (Frontend)
34+
- [ ] Unit test (Backend)
35+
- [ ] Test runner -> CI Workflow (Backend)
3636

3737
# Session 7
3838
- [ ] E2E Test

src/App.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { Board } from "./components/Board";
99
const queryClient = new QueryClient({
1010
mutationCache: new MutationCache({
1111
onSuccess: (_, __, ___, mutation) => {
12-
if (mutation.meta?.inaroInvalidateKon) {
13-
queryClient.invalidateQueries(mutation.meta.inaroInvalidateKon);
12+
if (mutation.meta?.invalidates) {
13+
queryClient.invalidateQueries(mutation.meta.invalidates);
1414
}
1515
},
1616
}),
@@ -23,7 +23,6 @@ const queryClient = new QueryClient({
2323
});
2424

2525
export function App() {
26-
// Todo
2726
return (
2827
<QueryClientProvider client={queryClient}>
2928
<Board />

src/lib/useBoard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function useCreateColumn() {
2222
mutationFn: ({ id, title }: { id: string; title: string }) =>
2323
apiClient.createColumn(id, title),
2424
meta: {
25-
inaroInvalidateKon: [boardKeys.all, boardKeys.columns()],
25+
invalidates: [boardKeys.all, boardKeys.columns()],
2626
},
2727
});
2828
}

src/ui/IconButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const iconButtonVariants = cva(
1515
c2a: "text-green-900 hover:bg-green-50",
1616
},
1717
size: {
18-
default: "h-6 w-6",
19-
lg: "h-10 w-10",
18+
default: "size-6",
19+
lg: "size-10",
2020
},
2121
},
2222
defaultVariants: {

0 commit comments

Comments
 (0)