Skip to content

Commit

Permalink
Merge branch 'feat/COT-54-change-global-background' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Donghyun Hwang committed Dec 30, 2024
2 parents 694d205 + 137849c commit 90a9e5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1,715 deletions.
6 changes: 3 additions & 3 deletions src/components/Background.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import { useThemeMode } from '@/hooks/useThemeMode';
import { Box, Stack } from '@mui/material';
import { THEME_CHANGE_TRANSITION } from '@theme/constants/constants';
import { useTheme } from 'styled-components';
import lightBackgroundImage from '@/assets/light_background.svg';
import darkBackgroundImage from '@/assets/dark_background.svg';
import useCotatoTheme from '@/hooks/useCotatoTheme';

//
//
Expand All @@ -14,7 +14,7 @@ const Background = () => {
const theme = useTheme();

//
const { mode } = useThemeMode();
const { DefaultTheme } = useCotatoTheme();

//
//
Expand All @@ -37,7 +37,7 @@ const Background = () => {
>
<Box
component="img"
src={mode === 'light' ? lightBackgroundImage : darkBackgroundImage}
src={DefaultTheme === 'light' ? lightBackgroundImage : darkBackgroundImage}
sx={{
objectFit: 'cover',
height: '100vh',
Expand Down
Loading

0 comments on commit 90a9e5c

Please sign in to comment.