diff --git a/ui/eslint.config.js b/ui/eslint.config.js
index 558620e..ae000d9 100644
--- a/ui/eslint.config.js
+++ b/ui/eslint.config.js
@@ -71,7 +71,10 @@ export default [
files: ['**/*.{ts,tsx}'],
languageOptions: { parser: tsParser },
plugins: { '@typescript-eslint': tsPlugin },
- rules: tsPlugin.configs.recommended.rules,
+ rules: {
+ ...tsPlugin.configs.recommended.rules,
+ '@typescript-eslint/no-explicit-any': 'off',
+ },
},
prettier,
]
diff --git a/ui/src/components/layouts/AuthLayout/Cover.tsx b/ui/src/components/layouts/AuthLayout/Cover.tsx
index 1acd792..0820a39 100644
--- a/ui/src/components/layouts/AuthLayout/Cover.tsx
+++ b/ui/src/components/layouts/AuthLayout/Cover.tsx
@@ -6,6 +6,7 @@ import type { ReactNode, ReactElement } from 'react'
import { Avatar } from '@/components/ui'
import { useLocalization } from '@/utils/hooks/useLocalization'
import { ROUTES_ENUM } from '@/routes/route.constant'
+import useDarkMode from '@/utils/hooks/useDarkmode'
interface CoverProps extends CommonProps {
content?: ReactNode
@@ -13,6 +14,7 @@ interface CoverProps extends CommonProps {
const Cover = ({ children, content, ...rest }: CoverProps) => {
const { translate } = useLocalization()
+ const [isDarkMode] = useDarkMode()
return (
@@ -26,7 +28,7 @@ const Cover = ({ children, content, ...rest }: CoverProps) => {
-
+
diff --git a/ui/src/components/layouts/AuthLayout/Side.tsx b/ui/src/components/layouts/AuthLayout/Side.tsx
index 7e1471f..4700aaa 100644
--- a/ui/src/components/layouts/AuthLayout/Side.tsx
+++ b/ui/src/components/layouts/AuthLayout/Side.tsx
@@ -5,6 +5,7 @@ import { APP_NAME } from '@/constants/app.constant'
import type { CommonProps } from '@/proxy/common'
import { useLocalization } from '@/utils/hooks/useLocalization'
import { ROUTES_ENUM } from '@/routes/route.constant'
+import useDarkMode from '@/utils/hooks/useDarkmode'
interface SideProps extends CommonProps {
content?: React.ReactNode
@@ -12,6 +13,7 @@ interface SideProps extends CommonProps {
const Side = ({ children, content, ...rest }: SideProps) => {
const { translate } = useLocalization()
+ const [isDarkMode] = useDarkMode()
return (
@@ -23,7 +25,7 @@ const Side = ({ children, content, ...rest }: SideProps) => {
>
-
+
diff --git a/ui/src/components/layouts/AuthLayout/Simple.tsx b/ui/src/components/layouts/AuthLayout/Simple.tsx
index 2535dea..8a5caf8 100644
--- a/ui/src/components/layouts/AuthLayout/Simple.tsx
+++ b/ui/src/components/layouts/AuthLayout/Simple.tsx
@@ -13,6 +13,7 @@ import { components } from 'react-select'
import { ROUTES_ENUM } from '@/routes/route.constant'
import { hasSubdomain } from '@/utils/subdomain'
import { dateLocales } from '@/constants/dateLocales.constant'
+import useDarkMode from '@/utils/hooks/useDarkmode'
interface SimpleProps extends CommonProps {
content?: ReactNode
@@ -22,6 +23,7 @@ const Simple = ({ children, content, ...rest }: SimpleProps) => {
const { config } = useStoreState((state) => state.abpConfig)
const { setLang } = useStoreActions((actions) => actions.locale)
const currentCulture = config?.localization?.currentCulture?.cultureName
+ const [isDarkMode] = useDarkMode()
const languageList = config?.localization.languages
@@ -55,7 +57,7 @@ const Simple = ({ children, content, ...rest }: SimpleProps) => {
}
}
- const CustomSelectOption = ({ innerProps, label, data, isSelected }: any) => {
+ const CustomSelectOption = ({ innerProps, data, isSelected }: any) => {
return (
{
-
+
diff --git a/ui/src/components/layouts/PublicLayout.tsx b/ui/src/components/layouts/PublicLayout.tsx
index 8d29c96..a32278b 100644
--- a/ui/src/components/layouts/PublicLayout.tsx
+++ b/ui/src/components/layouts/PublicLayout.tsx
@@ -184,7 +184,7 @@ const PublicLayout = () => {
>
@@ -240,7 +240,6 @@ const PublicLayout = () => {
})}
- {/* Right side: Language + Login */}
{demoButton('rounded-lg')}
@@ -390,7 +389,7 @@ const PublicLayout = () => {
-
+
{translate('::Public.footer.companyInfo')}
diff --git a/ui/src/components/template/Logo.tsx b/ui/src/components/template/Logo.tsx
index ffdb218..d443680 100644
--- a/ui/src/components/template/Logo.tsx
+++ b/ui/src/components/template/Logo.tsx
@@ -25,6 +25,10 @@ const Logo = (props: LogoProps) => {
logoWidth = 'auto',
url = ROUTES_ENUM.protected.dashboard,
} = props
+ const modeImgClass =
+ mode === 'dark'
+ ? 'brightness-150 contrast-105 saturate-75'
+ : 'brightness-100 contrast-110 saturate-110'
return (
{
>

diff --git a/ui/src/views/public/Logo.tsx b/ui/src/views/public/Logo.tsx
index 928f62d..615b05b 100644
--- a/ui/src/views/public/Logo.tsx
+++ b/ui/src/views/public/Logo.tsx
@@ -16,6 +16,10 @@ const LOGO_SRC_PATH = '/img/logo/'
const Logo = (props: LogoProps) => {
const { type = 'full', mode = 'light', className, imgClass, style, logoWidth = 'auto' } = props
+ const modeImgClass =
+ mode === 'dark'
+ ? 'brightness-150 contrast-105 saturate-75'
+ : 'brightness-100 contrast-110 saturate-110'
return (
{
>