Skip to content

Commit

Permalink
feat(us-2910):modifier le favicon passEmploi
Browse files Browse the repository at this point in the history
  • Loading branch information
Anhara01 committed Nov 12, 2024
1 parent 4ec3208 commit 6d82b86
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions app/(connected)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,18 @@ export async function generateMetadata(): Promise<Metadata> {
const conseiller = await getConseillerServerSide(user, accessToken)
const siteTitle =
'Espace conseiller ' + (estPassEmploi(conseiller) ? 'pass emploi' : 'CEJ')

return { title: { template: '%s - ' + siteTitle, default: siteTitle } }
const faviconPath = estPassEmploi(conseiller)
? '/pass-emploi_favicon.png'
: '/cej_favicon.png'

return {
title: { template: '%s - ' + siteTitle, default: siteTitle },
icons: {
icon: [faviconPath, '/favicon.png'],
shortcut: faviconPath,
apple: faviconPath,
},
}
}

export default async function LayoutWhenConnected({
Expand Down
Binary file added public/pass-emploi_favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6d82b86

Please sign in to comment.