From b647574b5ea9af0028120c8e63b585e9ab34960a Mon Sep 17 00:00:00 2001
From: Kalle <38327916+Sendouc@users.noreply.github.com>
Date: Sat, 7 Mar 2026 15:14:04 +0200
Subject: [PATCH] Delete unused
---
app/components/layout/NavDialog.module.css | 86 ---------------
app/components/layout/NavDialog.tsx | 118 ---------------------
app/components/layout/index.module.css | 12 ---
3 files changed, 216 deletions(-)
delete mode 100644 app/components/layout/NavDialog.module.css
delete mode 100644 app/components/layout/NavDialog.tsx
diff --git a/app/components/layout/NavDialog.module.css b/app/components/layout/NavDialog.module.css
deleted file mode 100644
index c7e918272..000000000
--- a/app/components/layout/NavDialog.module.css
+++ /dev/null
@@ -1,86 +0,0 @@
-.dialog {
- min-width: 100vw;
- min-height: 100vh;
- border-radius: 0 !important;
- border: 0 !important;
-}
-
-.closeButton {
- margin-inline-start: auto;
- margin-block-end: var(--s-4);
- margin-inline-end: var(--s-4);
-}
-
-.closeButton > svg {
- width: 32px;
-}
-
-.itemsContainer {
- display: flex;
- margin: 0 auto;
- gap: var(--s-4) var(--s-4);
- font-size: 13px;
- flex-wrap: wrap;
- justify-content: center;
- animation: smooth-appear 0.75s ease-out forwards;
- margin-top: 27.5px;
- opacity: 0.25;
- max-width: 48rem;
-}
-
-@keyframes smooth-appear {
- to {
- margin-top: 0px;
- opacity: 1;
- }
-}
-
-.navItem {
- display: flex;
- flex-direction: column;
- align-items: center;
- color: var(--color-text);
- font-weight: var(--weight-extra);
- gap: var(--s-1);
- text-align: center;
- width: 100px;
-}
-
-.logInButton {
- display: grid;
- width: 50px;
- height: 50px;
- border: none;
- border-radius: 100%;
- background-color: var(--color-bg-high);
- color: var(--color-text);
- place-items: center;
- transition: all 0.2s ease-out;
-}
-
-.imageContainer {
- display: grid;
- width: 75px;
- height: 75px;
- border-radius: var(--radius-box);
- background-color: var(--color-bg-high);
- color: var(--color-text);
- place-items: center;
- transition: all 0.2s ease-out;
-}
-
-.avatar {
- width: 50px;
- height: 50px;
-}
-
-.imageContainer:hover {
- background-color: var(--color-bg-higher);
-}
-
-@media screen and (max-width: 640px) {
- .dialog {
- padding-block: var(--s-12) !important;
- padding-inline: 0 !important;
- }
-}
diff --git a/app/components/layout/NavDialog.tsx b/app/components/layout/NavDialog.tsx
deleted file mode 100644
index 4aa1bb85a..000000000
--- a/app/components/layout/NavDialog.tsx
+++ /dev/null
@@ -1,118 +0,0 @@
-import { LogOut, X } from "lucide-react";
-import { useTranslation } from "react-i18next";
-import { Link } from "react-router";
-import { SendouDialog } from "~/components/elements/Dialog";
-import { navItems } from "~/components/layout/nav-items";
-import { useUser } from "~/features/auth/core/user";
-import { LOG_OUT_URL, navIconUrl, userPage } from "~/utils/urls";
-import { Avatar } from "../Avatar";
-import { SendouButton } from "../elements/Button";
-import { Image } from "../Image";
-import { LogInButtonContainer } from "./LogInButtonContainer";
-import styles from "./NavDialog.module.css";
-
-// xxx: deprecate?
-export function NavDialog({
- isOpen,
- close,
-}: {
- isOpen: boolean;
- close: () => void;
-}) {
- const user = useUser();
- const { t } = useTranslation(["common"]);
-
- if (!isOpen) {
- return null;
- }
-
- return (
-