fix and format

This commit is contained in:
ryanchristo 2023-11-05 08:54:38 -08:00
parent 818f984f7b
commit f9b77511d2
17 changed files with 206 additions and 202 deletions

View file

@ -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