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";
|
import NIGHT_BASE_IMG from "./images/Base_NoScreen_Night.png";
|
||||||
|
|
||||||
export const MrtBase = () => {
|
export const MrtBase = () => {
|
||||||
const { nightMode, setNightMode } = useMrtStore((state) => state);
|
const { nightMode, setNightMode, page } = useMrtStore((state) => state);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const checkNightMode = () => {
|
const checkNightMode = () => {
|
||||||
@@ -21,7 +21,7 @@ export const MrtBase = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Image
|
<Image
|
||||||
src={nightMode ? NIGHT_BASE_IMG : DAY_BASE_IMG}
|
src={nightMode && page !== "off" ? NIGHT_BASE_IMG : DAY_BASE_IMG}
|
||||||
alt=""
|
alt=""
|
||||||
className="z-30 col-span-full row-span-full"
|
className="z-30 col-span-full row-span-full"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user