1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +02:00

refactor: now always show feedback button for search page (#5765)

This commit is contained in:
Jaanus Sellin 2024-01-04 14:59:45 +02:00 committed by GitHub
parent 182901aab6
commit 77074a26de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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