mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
30 lines
857 B
TypeScript
30 lines
857 B
TypeScript
import DeprecatedAsyncComponent from 'sentry/components/deprecatedAsyncComponent';
|
|
import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
|
|
|
|
export type AsyncViewState = DeprecatedAsyncComponent['state'];
|
|
export type AsyncViewProps = DeprecatedAsyncComponent['props'];
|
|
|
|
/**
|
|
* @deprecated use useApiQuery instead.
|
|
*
|
|
* Read the dev docs page on network requests for more information [1].
|
|
*
|
|
* [1]: https://develop.sentry.dev/frontend/network-requests/
|
|
*/
|
|
export default class DeprecatedAsyncView<
|
|
P extends AsyncViewProps = AsyncViewProps,
|
|
S extends AsyncViewState = AsyncViewState,
|
|
> extends DeprecatedAsyncComponent<P, S> {
|
|
getTitle() {
|
|
return '';
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<SentryDocumentTitle title={this.getTitle()}>
|
|
{this.renderComponent() as React.ReactChild}
|
|
</SentryDocumentTitle>
|
|
);
|
|
}
|
|
}
|