mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
Board editing.
This commit is contained in:
parent
68c56060b3
commit
d9f698ca42
8 changed files with 183 additions and 86 deletions
|
|
@ -3,7 +3,7 @@ import { Loading, useToast } from '@umami/react-zen';
|
|||
import { createContext, type ReactNode, useCallback, useEffect, useState } from 'react';
|
||||
import { useApi, useMessages, useModified, useNavigation } from '@/components/hooks';
|
||||
import { useBoardQuery } from '@/components/hooks/queries/useBoardQuery';
|
||||
import type { Board } from '@/generated/prisma/client';
|
||||
import type { Board } from '@/lib/types';
|
||||
|
||||
export interface BoardContextValue {
|
||||
board: Partial<Board>;
|
||||
|
|
@ -17,6 +17,7 @@ export const BoardContext = createContext<BoardContextValue>(null);
|
|||
const defaultBoard: Partial<Board> = {
|
||||
name: '',
|
||||
description: '',
|
||||
parameters: { rows: [] },
|
||||
};
|
||||
|
||||
export function BoardProvider({ boardId, children }: { boardId?: string; children: ReactNode }) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue