fix: add readonly mode to editor

This commit is contained in:
2024-03-12 07:46:07 +07:00
parent 89759e7288
commit 7c187452f9
4 changed files with 41 additions and 23 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { createContext, useContext } from "react";
import type { ProjectSchema } from "~/server/db/schema/project";
type TProjectContext = {
project: ProjectSchema;
project: ProjectSchema & { isMutable: boolean };
isCompact?: boolean;
isEmbed?: boolean;
};