From 395ea011e6fd4e4b7456cc359eed3af76cad6b48 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 16 Oct 2024 23:05:33 +1100 Subject: [PATCH] Added update prop to add-button and passed in setUpdate for rerendering --- blotztask-ui/src/app/task-list/components/add-button.tsx | 4 ++-- blotztask-ui/src/app/task-list/page.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blotztask-ui/src/app/task-list/components/add-button.tsx b/blotztask-ui/src/app/task-list/components/add-button.tsx index 8ec530d..986c9f2 100644 --- a/blotztask-ui/src/app/task-list/components/add-button.tsx +++ b/blotztask-ui/src/app/task-list/components/add-button.tsx @@ -1,8 +1,8 @@ import { Button } from '@/components/ui/button'; -export function AddTask() { +export function AddTask({update}) { return ( - ); diff --git a/blotztask-ui/src/app/task-list/page.tsx b/blotztask-ui/src/app/task-list/page.tsx index acc28fb..0ebe3c1 100644 --- a/blotztask-ui/src/app/task-list/page.tsx +++ b/blotztask-ui/src/app/task-list/page.tsx @@ -26,7 +26,7 @@ export default function Page() { return (
- +