Skip to content

Commit

Permalink
Try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Corantin committed Nov 6, 2023
1 parent 4478890 commit fdacd27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-app/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ import background from './assets/background.svg';
import backgroundMotif from './assets/background-motif.svg';
import { isDarkTheme } from './utils/style.util';
import { useThemeContext } from './contexts/theme.context';
import { ThemeInterface } from './styles/theme';

// #region StyledComponents

const AppStyled = styled.div`
const AppStyled = styled.div<{ theme: ThemeInterface }>`
${({ theme }: any) => isDarkTheme(theme) && `background-image: url(${background});`};
&::after {
Expand Down

0 comments on commit fdacd27

Please sign in to comment.