From bc9d5aaa6ca5a76f36969fdeb029332a97f4418c Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 27 Jan 2025 22:02:28 +0530 Subject: [PATCH 1/3] chore: -rm unused code --- src/App.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index b8497f58..94e4a317 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -93,16 +93,6 @@ function App() { - - // - - // - // - // } /> - // - // - - // ); } From 80d2b50c82c6d4ed37f9b28fe0a6307b58897e42 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 27 Jan 2025 22:07:34 +0530 Subject: [PATCH 2/3] chore(ui): cleanup old theme --- src/App.tsx | 78 ----------------------------------------------------- 1 file changed, 78 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 94e4a317..bdf87a88 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,84 +6,6 @@ import { PageWrapper } from "./pages/PageWrapper"; import i18n from "./i18n"; import ThemeModeProvider from './context/theme-provider'; - -const theme = createTheme({ - palette: { - primary: { - main: "#ff00c3", - contrastText: "#ffffff", - }, - }, - components: { - MuiButton: { - styleOverrides: { - root: { - // Default styles for all buttons (optional) - textTransform: "none", - }, - containedPrimary: { - // Styles for 'contained' variant with 'primary' color - "&:hover": { - backgroundColor: "#ff66d9", - }, - }, - outlined: { - // Apply white background for all 'outlined' variant buttons - backgroundColor: "#ffffff", - "&:hover": { - backgroundColor: "#f0f0f0", // Optional lighter background on hover - }, - }, - }, - }, - MuiLink: { - styleOverrides: { - root: { - "&:hover": { - color: "#ff00c3", - }, - }, - }, - }, - MuiIconButton: { - styleOverrides: { - root: { - // '&:hover': { - // color: "#ff66d9", - // }, - }, - }, - }, - MuiTab: { - styleOverrides: { - root: { - textTransform: "none", - }, - }, - }, - MuiAlert: { - styleOverrides: { - standardInfo: { - backgroundColor: "#fce1f4", - color: "#ff00c3", - "& .MuiAlert-icon": { - color: "#ff00c3", - }, - }, - }, - }, - MuiAlertTitle: { - styleOverrides: { - root: { - "& .MuiAlert-icon": { - color: "#ffffff", - }, - }, - }, - }, - }, -}); - function App() { return ( From 89f653db09eefdf2334d6ab6fb5ad9902421755a Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 27 Jan 2025 22:09:17 +0530 Subject: [PATCH 3/3] chore: -rm ThemeProvider imports --- src/App.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index bdf87a88..13d04f83 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,5 @@ import React from "react"; import { Routes, Route } from "react-router-dom"; -import { ThemeProvider, createTheme } from "@mui/material/styles"; import { GlobalInfoProvider } from "./context/globalInfo"; import { PageWrapper } from "./pages/PageWrapper"; import i18n from "./i18n";