Skip to content

Commit

Permalink
fix: Ignore user settings to chose theme in public context
Browse files Browse the repository at this point in the history
  • Loading branch information
cballevre committed Aug 19, 2024
1 parent db1aa31 commit 298673a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/photos/targets/public/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { getQueryParameter } from 'react-cozy-helpers'
import getSharedDocument from 'cozy-sharing/dist/getSharedDocument'
import ErrorUnsharedComponent from 'photos/components/ErrorUnshared'
import Sprite from 'cozy-ui/transpiled/react/Icon/Sprite'
import { DumbCozyTheme } from 'cozy-ui/transpiled/react/providers/CozyTheme'
import CozyTheme from 'cozy-ui/transpiled/react/providers/CozyTheme'
import { Layout as LayoutUI } from 'cozy-ui/transpiled/react/Layout'

import appMetadata from 'photos/appMetadata'
Expand Down Expand Up @@ -101,10 +101,10 @@ async function init() {
} finally {
render(
<I18n lang={lang} dictRequire={lang => require(`photos/locales/${lang}`)}>
<DumbCozyTheme variant="normal" className="u-w-100">
<CozyTheme ignoreCozySettings className="u-w-100">
<LayoutUI monoColumn>{app}</LayoutUI>
<Sprite />
</DumbCozyTheme>
</CozyTheme>
</I18n>,
root
)
Expand Down

0 comments on commit 298673a

Please sign in to comment.