Adds scenes
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import { SessionRow } from "@/components/documents/session/SessionRow";
|
||||
import { SecretRow } from "@/components/documents/secret/SecretRow";
|
||||
import {
|
||||
isScene,
|
||||
isSecret,
|
||||
isSession,
|
||||
isTreasure,
|
||||
@@ -10,6 +11,7 @@ import {
|
||||
type Session,
|
||||
} from "@/lib/types";
|
||||
import { TreasureRow } from "./treasure/TreasureRow";
|
||||
import { SceneRow } from "./scene/SceneRow";
|
||||
|
||||
/**
|
||||
* Renders a row for any document type. Prioritizes Session, then Secret, then falls back to ID and creation time.
|
||||
@@ -29,6 +31,11 @@ export const DocumentRow = ({
|
||||
if (isSecret(document)) {
|
||||
return <SecretRow secret={document} session={session} />;
|
||||
}
|
||||
|
||||
if (isScene(document)) {
|
||||
return <SceneRow scene={document} />;
|
||||
}
|
||||
|
||||
if (isTreasure(document)) {
|
||||
return <TreasureRow treasure={document} session={session} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user