mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-06-02 06:14:48 +02:00
refactor: centralize globals and normalize sidebar/game-card layout
This commit is contained in:
@@ -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
-1
@@ -1,4 +1,4 @@
|
||||
import "./game-card.scss";
|
||||
import "./styles.scss";
|
||||
|
||||
interface GameCardProps {
|
||||
coverImageUrl?: string | null;
|
||||
@@ -1 +1 @@
|
||||
export * from "./game-card/game-card";
|
||||
export * from "./game-card";
|
||||
|
||||
+3
-2
@@ -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" : "";
|
||||
Reference in New Issue
Block a user