refactor: centralize globals and normalize sidebar/game-card layout

This commit is contained in:
Hachi-R
2026-04-20 22:34:28 -03:00
parent 353af20641
commit 1b4522b28f
7 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
import { useEffect } from "react";
import { Outlet } from "react-router-dom";
import { Sidebar } from "./layout";
import "./app.scss";
import { useEffect } from "react";
import { IS_DESKTOP } from "./constants";
import "./styles/globals.scss";
export default function App() {
useEffect(() => {
if (!IS_DESKTOP) {
@@ -1,4 +1,4 @@
import "./game-card.scss";
import "./styles.scss";
interface GameCardProps {
coverImageUrl?: string | null;
+1 -1
View File
@@ -1 +1 @@
export * from "./game-card/game-card";
export * from "./game-card";
@@ -6,8 +6,9 @@ import {
SquaresFourIcon,
} from "@phosphor-icons/react";
import { useLocation, useNavigate } from "react-router-dom";
import { IS_DESKTOP } from "../constants";
import "./sidebar.scss";
import { IS_DESKTOP } from "../../constants";
import "./styles.scss";
function SidebarRouter() {
const basePath = IS_DESKTOP ? "/big-picture" : "";