|
@@ -1,6 +1,9 @@
|
|
|
+import {Alert} from 'sentry/components/alert';
|
|
|
+import useFetchFeedbackItem from 'sentry/components/feedback/useFetchFeedbackItem';
|
|
|
import * as Layout from 'sentry/components/layouts/thirds';
|
|
|
import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
|
|
|
import {PageHeadingQuestionTooltip} from 'sentry/components/pageHeadingQuestionTooltip';
|
|
|
+import Placeholder from 'sentry/components/placeholder';
|
|
|
import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
|
|
|
import {t} from 'sentry/locale';
|
|
|
import useOrganization from 'sentry/utils/useOrganization';
|
|
@@ -8,6 +11,8 @@ import useOrganization from 'sentry/utils/useOrganization';
|
|
|
export default function Details() {
|
|
|
const organization = useOrganization();
|
|
|
|
|
|
+ const {isLoading, isError, data} = useFetchFeedbackItem({}, {});
|
|
|
+
|
|
|
return (
|
|
|
<SentryDocumentTitle title={`Feedback v2 — ${organization.slug}`}>
|
|
|
<Layout.Header>
|
|
@@ -25,7 +30,17 @@ export default function Details() {
|
|
|
</Layout.Header>
|
|
|
<PageFiltersContainer>
|
|
|
<Layout.Body>
|
|
|
- <Layout.Main fullWidth>TODO details page</Layout.Main>
|
|
|
+ <Layout.Main fullWidth>
|
|
|
+ {isLoading ? (
|
|
|
+ <Placeholder />
|
|
|
+ ) : isError ? (
|
|
|
+ <Alert type="error" showIcon>
|
|
|
+ {t('An error occurred')}
|
|
|
+ </Alert>
|
|
|
+ ) : (
|
|
|
+ <pre>{JSON.stringify(data, null, '\t')}</pre>
|
|
|
+ )}
|
|
|
+ </Layout.Main>
|
|
|
</Layout.Body>
|
|
|
</PageFiltersContainer>
|
|
|
</SentryDocumentTitle>
|