File tree 4 files changed +16
-4
lines changed 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import HeaderWithBackButton from '@components/HeaderWithBackButton' ;
3
3
import ScreenWrapper from '@components/ScreenWrapper' ;
4
- import useThemeStyles from '@hooks/useThemeStyles' ;
4
+ import useStyleUtils from '@hooks/useStyleUtils' ;
5
+ import useTheme from '@hooks/useTheme' ;
5
6
import Navigation from '@libs/Navigation/Navigation' ;
6
7
import * as Session from '@userActions/Session' ;
8
+ import SCREENS from '@src/SCREENS' ;
7
9
import SignInPage from './SignInPage' ;
8
10
9
11
const propTypes = { } ;
10
12
11
13
const defaultProps = { } ;
12
14
13
15
function SignInModal ( ) {
14
- const styles = useThemeStyles ( ) ;
16
+ const theme = useTheme ( ) ;
17
+ const StyleUtils = useStyleUtils ( ) ;
18
+
15
19
if ( ! Session . isAnonymousUser ( ) ) {
16
20
// Sign in in RHP is only for anonymous users
17
21
Navigation . isNavigationReady ( ) . then ( ( ) => {
@@ -20,7 +24,7 @@ function SignInModal() {
20
24
}
21
25
return (
22
26
< ScreenWrapper
23
- style = { [ styles . highlightBG ] }
27
+ style = { [ StyleUtils . getBackgroundColorStyle ( theme . PAGE_THEMES [ SCREENS . RIGHT_MODAL . SIGN_IN ] . backgroundColor ) ] }
24
28
includeSafeAreaPaddingBottom = { false }
25
29
shouldEnableMaxHeight
26
30
testID = { SignInModal . displayName }
Original file line number Diff line number Diff line change @@ -2372,7 +2372,7 @@ const styles = (theme: ThemeColors) =>
2372
2372
anonymousRoomFooterLogoTaglineText : {
2373
2373
fontFamily : fontFamily . EXP_NEUE ,
2374
2374
fontSize : variables . fontSizeMedium ,
2375
- color : theme . textLight ,
2375
+ color : theme . text ,
2376
2376
} ,
2377
2377
signInButtonAvatar : {
2378
2378
width : 80 ,
Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ const darkTheme = {
130
130
backgroundColor : colors . pink800 ,
131
131
statusBarStyle : CONST . STATUS_BAR_STYLE . LIGHT_CONTENT ,
132
132
} ,
133
+ [ SCREENS . RIGHT_MODAL . SIGN_IN ] : {
134
+ backgroundColor : colors . productDark200 ,
135
+ statusBarStyle : CONST . STATUS_BAR_STYLE . LIGHT_CONTENT ,
136
+ } ,
133
137
} ,
134
138
135
139
statusBarStyle : CONST . STATUS_BAR_STYLE . LIGHT_CONTENT ,
Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ const lightTheme = {
130
130
backgroundColor : colors . pink800 ,
131
131
statusBarStyle : CONST . STATUS_BAR_STYLE . LIGHT_CONTENT ,
132
132
} ,
133
+ [ SCREENS . RIGHT_MODAL . SIGN_IN ] : {
134
+ backgroundColor : colors . productDark200 ,
135
+ statusBarStyle : CONST . STATUS_BAR_STYLE . LIGHT_CONTENT ,
136
+ } ,
133
137
} ,
134
138
135
139
statusBarStyle : CONST . STATUS_BAR_STYLE . DARK_CONTENT ,
You can’t perform that action at this time.
0 commit comments