Added the Ability to Update Board Background Images After Creation

This commit is contained in:
Ahmad 2024-04-30 20:01:22 -04:00
parent 4ddb7f99fd
commit ae6a8d69b8
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
6 changed files with 123 additions and 6 deletions

View file

@ -13,6 +13,7 @@ import {
PopoverTrigger,
} from '@/components/ui/popover';
import { copyBoard } from '@/actions/copy-board';
import { BoardUpdateImage } from './board-update-image';
interface BoardOptionsProps {
id: string;
@ -70,15 +71,16 @@ export const BoardOptions = ({ id }: BoardOptionsProps) => {
disabled={isLoadingCopy}
className='h-auto w-full justify-start rounded-none p-2 px-5 text-sm font-normal text-neutral-600'
>
Copy this board
Copy this Board
</Button>
<BoardUpdateImage boardId={id} />
<Button
variant='ghost'
onClick={onDelete}
disabled={isLoadingDelete}
className='h-auto w-full justify-start rounded-none p-2 px-5 text-sm font-normal text-destructive hover:text-destructive'
>
Delete this board
Delete this Board
</Button>
</PopoverContent>
</Popover>