feat: remove « faire une suggestion » button

to reactivate when we hire somebody for treating the support
pull/2905/head
Johan Girod 2024-02-29 13:53:48 +01:00
parent 5912f450ce
commit 408a6bc8f4
2 changed files with 8 additions and 10 deletions

View File

@ -4,7 +4,6 @@ import { useLocation } from 'react-router-dom'
import { TrackingContext } from '@/components/ATInternetTracking'
import { Popover } from '@/design-system'
import { Button } from '@/design-system/buttons'
import { Emoji } from '@/design-system/emoji'
import { Spacing } from '@/design-system/layout'
import { Strong } from '@/design-system/typography'
@ -110,7 +109,9 @@ export function Feedback({
</>
) : (
<>
<H4>{customTitle || <Trans>Un avis sur cette page ?</Trans>}</H4>
<H4 as="h2">
{customTitle || <Trans>Un avis sur cette page ?</Trans>}
</H4>
{shouldShowRater && (
<FeedbackRating submitFeedback={submitFeedback} />
@ -122,6 +123,7 @@ export function Feedback({
<JeDonneMonAvis light />
) : (
<div style={{ textAlign: 'center' }}>
{/* TODO : reactivate when we have a support team
<Button
color="tertiary"
size="XXS"
@ -133,7 +135,7 @@ export function Feedback({
}}
>
<Trans i18nKey="feedback.reportError">Faire une suggestion</Trans>
</Button>
</Button> */}
</div>
)}
{isShowingSuggestionForm && (

View File

@ -9,7 +9,7 @@ import { styled } from 'styled-components'
import { ConversationProps } from '@/components/conversation/Conversation'
import ShareOrSaveSimulationBanner from '@/components/ShareSimulationBanner'
import { PopoverWithTrigger } from '@/design-system'
import { Container, Grid, Spacing } from '@/design-system/layout'
import { Grid, Spacing } from '@/design-system/layout'
import { Link } from '@/design-system/typography/link'
import {
companySituationSelector,
@ -129,17 +129,13 @@ export default function Simulation({
</FromTop>
</SimulationContainer>
{firstStepCompleted && !hideDetails && shouldShowFeedback && (
<Container
backgroundColor={(theme) => theme.colors.bases.primary[700]}
forceTheme="dark"
<div
style={{
textAlign: 'center',
padding: '1rem',
paddingBottom: '2rem',
}}
>
<Feedback />
</Container>
</div>
)}
{firstStepCompleted && !hideDetails && explanations}
</>