Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions react/providers/CozyTheme/DumbCozyTheme.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'

import flag from 'cozy-flags'

import { CozyThemeContext } from './index'
import MuiCozyTheme from '../../MuiCozyTheme'
import useMediaQuery from '../../hooks/useMediaQuery'
Expand All @@ -18,11 +16,8 @@ const DumbCozyTheme = ({
const uiThemeType = localStorage.getItem('ui-theme-type') // use only for cozy-ui documentation and argos screenshots
const uiThemeVariant = localStorage.getItem('ui-theme-variant') // use only for cozy-ui documentation and argos screenshots

const isOnlyLight = !!flag('ui.darkmode.enabled') // should be remove when dark mode is validated on all apps
const deviceThemeType = useMediaQuery('(prefers-color-scheme: dark)')
? isOnlyLight
? 'dark'
: 'light'
? 'dark'
: 'light'
const filteredSettingsThemeType = ['light', 'dark'].includes(
settingsThemeType
Expand Down
Loading