Skip to content

Commit

Permalink
refactor: now always show feedback button for search page (#5765)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Jan 4, 2024
1 parent 182901a commit 77074a2
Showing 1 changed file with 2 additions and 8 deletions.
Expand Up @@ -71,10 +71,7 @@ const feedbackCategory = 'search';

const FeatureToggleListTableComponent: VFC = () => {
const theme = useTheme();
const { openFeedback, hasSubmittedFeedback } = useFeedback(
feedbackCategory,
'automatic',
);
const { openFeedback } = useFeedback(feedbackCategory, 'automatic');
const { trackEvent } = usePlausibleTracker();
const { environments } = useEnvironments();
const enabledEnvironments = environments
Expand Down Expand Up @@ -326,10 +323,7 @@ const FeatureToggleListTableComponent: VFC = () => {
onExportClick={() => setShowExportDialog(true)}
/>
<ConditionallyRender
condition={
!hasSubmittedFeedback &&
featureSearchFeedback
}
condition={featureSearchFeedback}
show={
<Tooltip title='Provide feedback' arrow>
<IconButton
Expand Down

0 comments on commit 77074a2

Please sign in to comment.