From 3f6077624dbcec2bcfca828fd0ea5bfbccafe7c2 Mon Sep 17 00:00:00 2001 From: Amirhossein Mahmoodi Date: Sat, 10 Aug 2024 13:30:54 +0330 Subject: [PATCH] update --- .gitignore | 4 +++- example.env.local | 18 ------------------ src/layouts/MuiLayout.jsx | 25 ++++++++++++------------- 3 files changed, 15 insertions(+), 32 deletions(-) delete mode 100644 example.env.local diff --git a/.gitignore b/.gitignore index 2b2856c..b904788 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,6 @@ cypress/screenshots package-lock.json ecosystem.config.js -public/config.json \ No newline at end of file +public/config.json + +.vscode/ \ No newline at end of file diff --git a/example.env.local b/example.env.local deleted file mode 100644 index ac1affe..0000000 --- a/example.env.local +++ /dev/null @@ -1,18 +0,0 @@ -NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard" -NEXT_PUBLIC_API_VERSION = "2.5.0" -NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa" -NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl" - -NEXT_PUBLIC_PRIMARY_MAIN = "#084070" -NEXT_PUBLIC_SECONDARY_MAIN = "#FF4E00" - -NEXT_PUBLIC_FACILITY_BANK = 33 -NEXT_PUBLIC_FACILITY_PERSON = 10 - -NEXT_PUBLIC_BASE_URL = "https://loan-v2.witel.ir" -NEXT_PUBLIC_POWERED_BY_URL = "https://witel.ir" - -#["NEXT_PUBLIC_HAS_WIDGET" , "NEXT_PUBLIC_HAS_NOTIFICATION"] -NEXT_PUBLIC_HAS_VALUE=["NEXT_PUBLIC_HAS_NOTIFICATION"] - -NODE_ENV = "development" \ No newline at end of file diff --git a/src/layouts/MuiLayout.jsx b/src/layouts/MuiLayout.jsx index 4d81784..6bfe9c0 100644 --- a/src/layouts/MuiLayout.jsx +++ b/src/layouts/MuiLayout.jsx @@ -1,15 +1,15 @@ import NoSsrHandler from "@/core/components/NoSsrHandler"; -import {createEmotionCacheRtl} from "@/core/utils/createEmotionCache"; +import { createEmotionCacheRtl } from "@/core/utils/createEmotionCache"; import themeRtl from "@/core/utils/theme-rtl"; -import {CacheProvider} from "@emotion/react"; -import {GlobalStyles} from "@mui/material"; +import { CacheProvider } from "@emotion/react"; +import { GlobalStyles } from "@mui/material"; import CssBaseline from "@mui/material/CssBaseline"; -import {ThemeProvider} from "@mui/material/styles"; +import { ThemeProvider } from "@mui/material/styles"; import Head from "next/head"; const clientSideEmotionCacheRtl = createEmotionCacheRtl(); -const MuiLayout = ({children, isBot}) => { +const MuiLayout = ({ children, isBot }) => { const emotionCache = clientSideEmotionCacheRtl; const theme = themeRtl; @@ -17,7 +17,7 @@ const MuiLayout = ({children, isBot}) => { - + { borderRadius: "3px", }, "*:not(.MuiTableContainer-root)": { - scrollbarWidth: "thin", - scrollbarColor: "transparent transparent", + scrollbarWidth: "none", }, "*": { @@ -50,12 +49,12 @@ const MuiLayout = ({children, isBot}) => { height: "4px", }, }, - " input[type='number']::-webkit-inner-spin-button,input[type='number']::-webkit-outer-spin-button " :{ - "-webkit-appearance":"none", + " input[type='number']::-webkit-inner-spin-button,input[type='number']::-webkit-outer-spin-button ": { + "-webkit-appearance": "none", margin: 0 }, - " input[type='number']" :{ - "-moz-appearance":"textfield", + " input[type='number']": { + "-moz-appearance": "textfield", }, body: { width: "100vw", @@ -68,7 +67,7 @@ const MuiLayout = ({children, isBot}) => { }} /> - + {children}