@@ -4,13 +4,11 @@ import { components } from "@/shared/api/rest/types.generated";
44import { Badge } from "@/shared/components/ui/badge" ;
55import { warnUnexpectedType } from "@/shared/utils/common" ;
66
7- import { AccordionStyled , ListDisplay , ModelDisplay , PropertyRow } from "./styled " ;
7+ import { RelationshipSchema } from "@/entities/schema/types " ;
88
9- export const RelationshipDisplay = ( {
10- relationship,
11- } : {
12- relationship : components [ "schemas" ] [ "RelationshipSchema-Output" ] ;
13- } ) => {
9+ import { AccordionStyled , ModelDisplay , PropertyRow } from "./styled" ;
10+
11+ export const RelationshipDisplay = ( { relationship } : { relationship : RelationshipSchema } ) => {
1412 const cardinalityLabel = relationship . cardinality
1513 ? getLabelForCardinality ( relationship . cardinality )
1614 : null ;
@@ -44,15 +42,13 @@ export const RelationshipDisplay = ({
4442 < div >
4543 < PropertyRow title = "Peer" value = { < ModelDisplay kinds = { [ relationship . peer ] } /> } />
4644 < PropertyRow title = "Peer identifier" value = { relationship . identifier } />
47- < PropertyRow
48- title = "Common parent"
49- value = { < ListDisplay items = { relationship . common_parent } /> }
50- />
45+ < PropertyRow title = "Common parent" value = { relationship . common_parent } />
5146 < PropertyRow title = "Cardinality" value = { relationship . cardinality } />
5247 < PropertyRow title = "Direction" value = { relationship . direction } />
5348 < PropertyRow title = "Kind" value = { relationship . kind } />
5449 < PropertyRow title = "Hierarchical" value = { relationship . hierarchical } />
5550 < PropertyRow title = "Inherited" value = { relationship . inherited } />
51+ < PropertyRow title = "On delete" value = { relationship . on_delete } />
5652 </ div >
5753
5854 < div >
0 commit comments