1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01: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 theme = useTheme();
const { openFeedback, hasSubmittedFeedback } = useFeedback(
feedbackCategory,
'automatic',
);
const { openFeedback } = useFeedback(feedbackCategory, 'automatic');
const { trackEvent } = usePlausibleTracker();
const { environments } = useEnvironments();
const enabledEnvironments = environments
@ -326,10 +323,7 @@ const FeatureToggleListTableComponent: VFC = () => {
onExportClick={() => setShowExportDialog(true)}
/>
<ConditionallyRender
condition={
!hasSubmittedFeedback &&
featureSearchFeedback
}
condition={featureSearchFeedback}
show={
<Tooltip title='Provide feedback' arrow>
<IconButton