Skip to content

Commit

Permalink
remove MobileAppPromoBanner
Browse files Browse the repository at this point in the history
  • Loading branch information
eletallbetagouv committed Feb 25, 2025
1 parent cecc9bf commit a4803b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {ScAlert} from '@/components_simple/ScAlert'
import {androidAppUrl, iosAppUrl} from '@/components_simple/bigBanners/MobileAppPromoBanner'
import {appConfig} from '@/core/appConfig'
import {Accordion} from '@codegouvfr/react-dsfr/Accordion'
import Link from 'next/link'

const urlSsvm = 'https://www.ecologie.gouv.fr/service-surveillance-du-marche-des-vehicules-et-des-moteurs-ssmvm'

export function ArticleRappelAirbagTakata() {
Expand Down Expand Up @@ -81,11 +80,11 @@ export function ArticleRappelAirbagTakata() {
<ScAlert type="info">
Pour être informé de tous les rappels de produits sur votre téléphone, téléchargez dès maintenant la nouvelle version de
l'application SignalConso sur{' '}
<Link href={iosAppUrl} target="_blank">
<Link href={appConfig.iosAppUrl} target="_blank">
iOS
</Link>{' '}
et{' '}
<Link href={androidAppUrl} target="_blank">
<Link href={appConfig.androidAppUrl} target="_blank">
Google Play
</Link>
.
Expand Down
2 changes: 0 additions & 2 deletions website/src/components_feature/home/Homepage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {FullWidthPageContainer} from '@/components_simple/PageContainers'
import {IllustrationStepper} from '@/components_simple/StepIllustrations/StepIllustrations'
import {ForeignVisitorsQaPromoBanner} from '@/components_simple/bigBanners/ForeignVisitorsQaPromoBanner'
import {InfoBanner} from '@/components_simple/bigBanners/InfoBanner'
import {MobileAppPromoBanner} from '@/components_simple/bigBanners/MobileAppPromoBanner'
import {bigReportButtonProps} from '@/components_simple/buttons/buttonsUtils'
import {HP_START_REPORT_ANCHOR} from '@/core/buildLinks'
import {hasStep0} from '@/feature/reportUtils'
Expand Down Expand Up @@ -40,7 +39,6 @@ export const Homepage = () => {
<>
<FullWidthPageContainer>
<div>
<MobileAppPromoBanner />
<div className="fr-container">
<InfoBanner />
<BrowserCompatAlert />
Expand Down
24 changes: 0 additions & 24 deletions website/src/components_simple/bigBanners/MobileAppPromoBanner.tsx

This file was deleted.

2 changes: 2 additions & 0 deletions website/src/core/appConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export const appConfig = {
airtableApiToken: process.env.NEXT_PUBLIC_AIRTABLE_API_TOKEN ?? null,
maxNumberOfAttachments: readInt(process.env.NEXT_PUBLIC_MAX_NUMBER_OF_ATTACHMENTS, 12),
anonMetabaseUrl: `https://metabase-publicstats-signalconso.cleverapps.io`,
iosAppUrl: 'https://apps.apple.com/fr/app/signalconso/id6447964093',
androidAppUrl: 'https://play.google.com/store/apps/details?id=com.signalconso.signalconso',
}

export type AppConfig = typeof appConfig

0 comments on commit a4803b5

Please sign in to comment.