MCPcopy Create free account
hub / github.com/alephdata/aleph / render

Method render

ui/src/screens/SearchScreen/SearchScreen.jsx:40–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39export class SearchScreen extends React.Component {
40 render() {
41 const { query, result, intl } = this.props;
42
43 const titleStatus =
44 result.isPending && !result.results?.length
45 ? intl.formatMessage(messages.loading)
46 : query.getString('q');
47 const title = titleStatus
48 ? intl.formatMessage(messages.title, { title: titleStatus })
49 : intl.formatMessage(messages.title_emptyq);
50
51 return (
52 <Screen title={title}>
53 <FacetedEntitySearch
54 query={query}
55 result={result}
56 additionalFields={['collection_id']}
57 >
58 <SignInCallout />
59 </FacetedEntitySearch>
60 </Screen>
61 );
62 }
63}
64const mapStateToProps = (state, ownProps) => {
65 const { location } = ownProps;

Callers

nothing calls this directly

Calls 1

getStringMethod · 0.80

Tested by

no test coverage detected