Moves editing into forms. Every doc has a page now. BUG: state not refreshed after mutation
This commit is contained in:
@@ -3,9 +3,9 @@ import { pb } from "@/lib/pocketbase";
|
||||
import type { Scene } from "@/lib/types";
|
||||
|
||||
/**
|
||||
* Renders an editable scene row
|
||||
* Renders an editable scene form
|
||||
*/
|
||||
export const SceneRow = ({ scene }: { scene: Scene }) => {
|
||||
export const SceneEditForm = ({ scene }: { scene: Scene }) => {
|
||||
async function saveScene(text: string) {
|
||||
await pb.collection("documents").update(scene.id, {
|
||||
data: {
|
||||
Reference in New Issue
Block a user