Skip to content

Commit

Permalink
fix: Replace default wallpaper
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Oct 22, 2024
1 parent ff942ee commit 1863169
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/assets/images/default-wallpaper.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/images/wallpaper.svg

This file was deleted.

11 changes: 2 additions & 9 deletions src/components/BackgroundContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cx from 'classnames'
import { useWallpaperContext } from 'hooks/useWallpaperContext'
import { useCozyTheme } from 'cozy-ui/transpiled/react/providers/CozyTheme'

import DefaultWallpaper from 'assets/images/wallpaper.svg'
import DefaultWallpaper from 'assets/images/default-wallpaper.svg'

export const BackgroundContainer = (): JSX.Element => {
const {
Expand Down Expand Up @@ -32,14 +32,7 @@ export const BackgroundContainer = (): JSX.Element => {
<div />
<div />
{!isCustomWallpaper && (
<div
className="home-default-background--img"
style={{
backgroundImage: `url(${DefaultWallpaper})`,
backgroundRepeat: 'no-repeat',
backgroundSize: '100%'
}}
/>
<img className="home-default-background--img" src={DefaultWallpaper} />
)}
</div>
)
Expand Down

0 comments on commit 1863169

Please sign in to comment.