Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions static/app/views/releases/components/header.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import {Button} from '@sentry/scraps/button';

import * as Layout from 'sentry/components/layouts/thirds';
import {PageHeadingQuestionTooltip} from 'sentry/components/pageHeadingQuestionTooltip';
import {IconMegaphone} from 'sentry/icons';
import {t} from 'sentry/locale';
import {useFeedbackForm} from 'sentry/utils/useFeedbackForm';

function Header() {
const openFeedbackForm = useFeedbackForm();

return (
<Layout.Header noActionWrap unified>
<Layout.HeaderContent unified>
Expand All @@ -16,6 +22,24 @@ function Header() {
/>
</Layout.Title>
</Layout.HeaderContent>
{openFeedbackForm ? (
<Layout.HeaderActions>
<Button
size="sm"
icon={<IconMegaphone />}
onClick={() =>
openFeedbackForm({
messagePlaceholder: t('How can we improve the Releases experience?'),
tags: {
['feedback.source']: 'releases-list-header',
},
})
}
>
{t('Give Feedback')}
</Button>
</Layout.HeaderActions>
) : null}
</Layout.Header>
);
}
Expand Down
2 changes: 0 additions & 2 deletions static/app/views/releases/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {forceCheck} from 'react-lazyload';
import styled from '@emotion/styled';

import {fetchTagValues} from 'sentry/actionCreators/tags';
import FloatingFeedbackWidget from 'sentry/components/feedback/widget/floatingFeedbackWidget';
import * as Layout from 'sentry/components/layouts/thirds';
import LoadingError from 'sentry/components/loadingError';
import NoProjectMessage from 'sentry/components/noProjectMessage';
Expand Down Expand Up @@ -399,7 +398,6 @@ export default function ReleasesList() {
/>
</DemoTourElement>
)}
<FloatingFeedbackWidget />
</Layout.Main>
</Layout.Body>
</NoProjectMessage>
Expand Down
Loading