File tree Expand file tree Collapse file tree
payment/PaymentNotifications
relay-dashboard/Balance/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ export const LoginForm: React.FC = () => {
155155 { t ( 'login.noAccount' ) }
156156 </ Auth . Text >
157157 < Link to = "/auth/sign-up" style = { { display : 'block' , textDecoration : 'none' } } >
158- < Auth . SecondaryButton type = "button " block >
158+ < Auth . SecondaryButton type = "default " block >
159159 { t ( 'common.createAccount' ) }
160160 </ Auth . SecondaryButton >
161161 </ Link >
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export const SignUpForm: React.FC = () => {
9494 { t ( 'signup.alreadyHaveAccount' ) }
9595 </ Auth . Text >
9696 < Link to = "/auth/login" style = { { display : 'block' , textDecoration : 'none' } } >
97- < Auth . SecondaryButton type = "button " block >
97+ < Auth . SecondaryButton type = "default " block >
9898 { t ( 'common.login' ) }
9999 </ Auth . SecondaryButton >
100100 </ Link >
Original file line number Diff line number Diff line change @@ -37,14 +37,9 @@ export const BaseModal: BaseModalInterface = ({
3737 }
3838
3939 // Determine the container based on fullscreen status
40- const getModalContainer = ( ) => {
41- // Check if we're in fullscreen mode
42- if ( document . fullscreenElement ) {
43- return document . fullscreenElement as HTMLElement ;
44- }
45- // Otherwise, render in parent (getContainer={false} means render in parent)
46- return false ;
47- } ;
40+ const getModalContainer = document . fullscreenElement
41+ ? ( ) => document . fullscreenElement as HTMLElement
42+ : false ;
4843
4944 return (
5045 < Modal
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { GithubOutlined } from '@ant-design/icons' ;
33import styled from 'styled-components' ;
4- import { useAppSelector } from '@app/hooks/reduxHooks' ;
54import { BASE_COLORS } from '@app/styles/themes/constants' ;
65import { BaseButton as BaseButton } from '@app/components/common/BaseButton/BaseButton' ;
76
87export const GitHubButton : React . FC = ( props ) => {
9- const theme = useAppSelector ( ( state ) => state . theme . theme ) ;
8+ // For liquid-blue theme, use light appearance
9+ const isDark = false ;
1010
1111 return (
1212 < Button
1313 type = "default"
1414 href = "https://github.com/altence/lightence-admin"
1515 icon = { < GithubIcon /> }
1616 target = "_blank"
17- $isDark = { theme === 'dark' }
17+ $isDark = { isDark }
1818 { ...props }
1919 >
2020 GitHub
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { MoonSunSwitch } from '@app/components/common/MoonSunSwitch/MoonSunSwitch' ;
3- import { ThemeType } from '@app/interfaces/interfaces' ;
4- import { useAppDispatch , useAppSelector } from '@app/hooks/reduxHooks' ;
5- import { setTheme } from '@app/store/slices/themeSlice' ;
6- import { setNightMode } from '@app/store/slices/nightModeSlice' ;
73
84export const ThemePicker : React . FC = ( ) => {
9- const dispatch = useAppDispatch ( ) ;
10- const theme = useAppSelector ( ( state ) => state . theme . theme ) ;
11-
12- const handleClickButton = ( theme : ThemeType ) => {
13- dispatch ( setTheme ( theme ) ) ;
14- dispatch ( setNightMode ( false ) ) ;
15- } ;
16-
5+ // Only liquid-blue theme is supported - theme switching is disabled
176 return (
187 < MoonSunSwitch
19- isMoonActive = { theme === 'dark' }
20- onClickMoon = { ( ) => handleClickButton ( 'dark' ) }
21- onClickSun = { ( ) => handleClickButton ( 'light' ) }
8+ isMoonActive = { false }
9+ onClickMoon = { ( ) => { } }
10+ onClickSun = { ( ) => { } }
2211 />
2312 ) ;
2413} ;
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { RightOutlined } from '@ant-design/icons';
44import { useResponsive } from 'hooks/useResponsive' ;
55import logo from 'assets/logo.png' ;
66import logoDark from 'assets/logo-dark.png' ;
7- import { useAppSelector } from '@app/hooks/reduxHooks' ;
87
98interface SiderLogoProps {
109 isSiderCollapsed : boolean ;
@@ -13,9 +12,8 @@ interface SiderLogoProps {
1312export const SiderLogo : React . FC < SiderLogoProps > = ( { isSiderCollapsed, toggleSider } ) => {
1413 const { tabletOnly } = useResponsive ( ) ;
1514
16- const theme = useAppSelector ( ( state ) => state . theme . theme ) ;
17-
18- const img = theme === 'dark' ? logoDark : logo ;
15+ // For liquid-blue theme, use the default logo
16+ const img = logo ;
1917
2018 return (
2119 < S . SiderLogoDiv >
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ export const PaymentNotifications: React.FC<PaymentNotificationsProps> = ({ clas
182182 < BaseRow justify = "space-between" align = "middle" >
183183 < BaseCol >
184184 { notifications . some ( n => ! n . is_read ) && (
185- < BaseButton type = "default" onClick = { markAllAsRead } >
185+ < BaseButton type = "default" onClick = { ( ) => markAllAsRead ( ) } >
186186 { t ( 'payment.notifications.readAll' , 'Mark all as read' ) }
187187 </ BaseButton >
188188 ) }
Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ import React, { useState } from 'react';
22import { SendOutlined } from '@ant-design/icons' ;
33import * as S from '../TopUpBalanceButton/TopUpBalanceButton.styles' ;
44import SendModal from '../SendModal/SendModal' ;
5- import { useAppSelector } from '@app/hooks/reduxHooks' ;
65
76const SendButton : React . FC = ( ) => {
8- const { theme } = useAppSelector ( ( state ) => state . theme ) ;
97 const [ isModalOpen , setIsModalOpen ] = useState ( false ) ;
108 const handleButtonClick = ( ) => {
119 setIsModalOpen ( true ) ;
@@ -16,7 +14,7 @@ const SendButton: React.FC = () => {
1614 return (
1715 < >
1816 < S . TopUpButton
19- type = { theme === 'dark' ? 'ghost' : ' primary' }
17+ type = " primary"
2018 block
2119 onClick = { handleButtonClick }
2220 icon = { < SendOutlined /> }
Original file line number Diff line number Diff line change 11import React , { useState } from 'react' ;
22import { DownloadOutlined } from '@ant-design/icons' ;
33import { useTranslation } from 'react-i18next' ;
4- import { useAppSelector } from '@app/hooks/reduxHooks' ;
54import { TopUpBalanceModal } from '../TopUpBalanceModal/TopUpBalanceModal' ;
65import * as S from './TopUpBalanceButton.styles' ;
76
87export const TopUpBalanceButton : React . FC = ( ) => {
98 const { t } = useTranslation ( ) ;
10- const { theme } = useAppSelector ( ( state ) => state . theme ) ;
119 const [ isModalOpen , setIsModalOpen ] = useState ( false ) ;
1210
1311 const handleButtonClick = ( ) => {
@@ -25,7 +23,7 @@ export const TopUpBalanceButton: React.FC = () => {
2523 return (
2624 < >
2725 < S . TopUpButton
28- type = { theme === 'dark' ? 'ghost' : ' primary' }
26+ type = " primary"
2927 block
3028 onClick = { handleButtonClick }
3129 icon = { < DownloadOutlined /> }
You can’t perform that action at this time.
0 commit comments