night mode nur wenn das mrt an ist
This commit is contained in:
@@ -5,7 +5,7 @@ import DAY_BASE_IMG from "./images/Base_NoScreen_Day.png";
|
||||
import NIGHT_BASE_IMG from "./images/Base_NoScreen_Night.png";
|
||||
|
||||
export const MrtBase = () => {
|
||||
const { nightMode, setNightMode } = useMrtStore((state) => state);
|
||||
const { nightMode, setNightMode, page } = useMrtStore((state) => state);
|
||||
|
||||
useEffect(() => {
|
||||
const checkNightMode = () => {
|
||||
@@ -21,7 +21,7 @@ export const MrtBase = () => {
|
||||
|
||||
return (
|
||||
<Image
|
||||
src={nightMode ? NIGHT_BASE_IMG : DAY_BASE_IMG}
|
||||
src={nightMode && page !== "off" ? NIGHT_BASE_IMG : DAY_BASE_IMG}
|
||||
alt=""
|
||||
className="z-30 col-span-full row-span-full"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user