fix and format
This commit is contained in:
parent
818f984f7b
commit
f9b77511d2
17 changed files with 206 additions and 202 deletions
|
|
@ -1,21 +1,21 @@
|
|||
"use client";
|
||||
'use client'
|
||||
|
||||
import { ThemeContext } from "@contexts/ThemeContext";
|
||||
import darkBackground from "../public/images/chora_dark.png";
|
||||
import lightBackground from "../public/images/chora_light.png";
|
||||
import Image from "next/image";
|
||||
import { useContext } from "react";
|
||||
import { ThemeContext } from '@contexts/ThemeContext'
|
||||
import darkBackground from '../public/images/chora_dark.png'
|
||||
import lightBackground from '../public/images/chora_light.png'
|
||||
import Image from 'next/image'
|
||||
import { useContext } from 'react'
|
||||
|
||||
import styles from "./Background.module.css";
|
||||
import styles from './Background.module.css'
|
||||
|
||||
const Background = () => {
|
||||
const { darkTheme } = useContext(ThemeContext);
|
||||
const { darkTheme } = useContext(ThemeContext)
|
||||
|
||||
return (
|
||||
<div className={styles.background}>
|
||||
<Image alt="chora" src={darkTheme ? darkBackground : lightBackground} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
)
|
||||
}
|
||||
|
||||
export default Background;
|
||||
export default Background
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue