fix: suppression resource-counter navbar — redondant avec cockpit header
This commit is contained in:
@@ -6,7 +6,6 @@ import "../scss/root.scss";
|
||||
|
||||
import PrimaryButton from "./buttons/PrimaryButton";
|
||||
import Burger from "./burger";
|
||||
import { useGameStore } from "../store/useGameStore";
|
||||
import { useAuth } from "../context/AuthContext";
|
||||
import HUDON from "../../public/NavBar/HUDON.svg";
|
||||
import HUDOFF from "../../public/NavBar/HUDOFF.svg";
|
||||
@@ -28,7 +27,6 @@ export default function Navbar({
|
||||
toggleRain: PropTypes.bool,
|
||||
}.isRequired;
|
||||
|
||||
const resources = useGameStore((s) => s.state.resources);
|
||||
const { user, logout } = useAuth();
|
||||
const [imageSrc, setImageSrc] = useState(HUDON);
|
||||
const [snowImageSrc, setSnowImageSrc] = useState(SnowOff);
|
||||
@@ -59,9 +57,6 @@ export default function Navbar({
|
||||
title="Logo Clickerz"
|
||||
/>
|
||||
<div className="navbar">
|
||||
<div className="resource-counter">
|
||||
{new Intl.NumberFormat().format(Math.floor(resources))}
|
||||
</div>
|
||||
<ul className="nav-list">
|
||||
{navData.map((navIndex) => {
|
||||
if (navIndex.dropdown === undefined) {
|
||||
|
||||
@@ -274,14 +274,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.resource-counter {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-family: var(--font);
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-grey);
|
||||
}
|
||||
|
||||
.auth-nav {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user