File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
pdl-live-react/src/view/detail Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 11import type Model from "../timeline/model"
22
3- export default function BlockNotFound ( _props : { id : string ; model : Model } ) {
3+ export default function BlockNotFound ( props : { id : string ; model : Model } ) {
4+ console . error (
5+ "Block not found" ,
6+ props . id ,
7+ props . model . map ( ( b ) => b . id ) ,
8+ )
49 return < div > Block not found</ div >
510}
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import CallItems from "./kind/Call"
77import CodeItems from "./kind/Code"
88import DataItems from "./kind/Data"
99import ReadItems from "./kind/Read"
10+ import TextItems from "./kind/Text"
1011import ModelItems from "./kind/Model"
1112import FunctionItems from "./kind/Function"
1213
@@ -23,6 +24,7 @@ function descriptionItems(block: import("../../helpers").NonScalarPdlBlock) {
2324 . with ( { kind : "code" } , ( block ) => < CodeItems block = { block } /> )
2425 . with ( { kind : "data" } , ( block ) => < DataItems block = { block } /> )
2526 . with ( { kind : "read" } , ( block ) => < ReadItems block = { block } /> )
27+ . with ( { kind : "text" } , ( block ) => < TextItems block = { block } /> )
2628 . with ( { kind : "model" } , ( block ) => < ModelItems block = { block } /> )
2729 . with ( { kind : "function" } , ( block ) => < FunctionItems block = { block } /> )
2830 . otherwise ( ( ) => < > This is a { block . kind } block</ > )
Original file line number Diff line number Diff line change 1+ import Result from "../../transcript/Result"
2+
3+ export default function TextItems ( {
4+ block : { result } ,
5+ } : {
6+ block : import ( "../../../pdl_ast" ) . TextBlock
7+ } ) {
8+ return < Result result = { result } />
9+ }
You can’t perform that action at this time.
0 commit comments