MCPcopy Create free account
hub / github.com/atomicdata-dev/atomic-data-browser / Row

Function Row

data-browser/src/components/Table.tsx:145–163  ·  view source on GitHub ↗
({ subject, propsArray }: RowProps)

Source from the content-addressed store, hash-verified

143};
144
145function Row({ subject, propsArray }: RowProps): JSX.Element {
146 const resource = useResource(subject, {
147 // We don't need to fetch all members for Collections when looking at a Table view.
148 allowIncomplete: true,
149 });
150 if (resource === null) {
151 return null;
152 }
153 return (
154 <RowStyled about={subject}>
155 <CellStyled>
156 <ResourceInline subject={subject} />
157 </CellStyled>
158 {propsArray.map(prop => {
159 return <Cell key={prop} resource={resource} prop={prop} />;
160 })}
161 </RowStyled>
162 );
163}
164
165const RowStyled = styled.tr`
166 background-color: ${p => p.theme.colors.bg};

Callers

nothing calls this directly

Calls 1

useResourceFunction · 0.90

Tested by

no test coverage detected