@@ -5,6 +5,7 @@ import loader from "../assets/images/loader2.gif";
5
5
import axios from "axios" ;
6
6
import { isEnableSubscription , themeColor } from "../constant/const" ;
7
7
import { contractUsers , getAppLogo } from "../constant/Utils" ;
8
+ import logo from "../assets/images/logo.png" ;
8
9
9
10
function GuestLogin ( ) {
10
11
const { id, userMail, contactBookId, serverUrl } = useParams ( ) ;
@@ -14,9 +15,7 @@ function GuestLogin() {
14
15
const [ EnterOTP , setEnterOtp ] = useState ( false ) ;
15
16
const [ loading , setLoading ] = useState ( false ) ;
16
17
const [ isLoading , setIsLoading ] = useState ( true ) ;
17
- const [ appLogo , setAppLogo ] = useState (
18
- "https://qikinnovation.ams3.digitaloceanspaces.com/logo.png"
19
- ) ;
18
+ const [ appLogo , setAppLogo ] = useState ( "" ) ;
20
19
21
20
useEffect ( ( ) => {
22
21
handleServerUrl ( ) ;
@@ -31,8 +30,10 @@ function GuestLogin() {
31
30
if ( applogo ) {
32
31
setAppLogo ( applogo ) ;
33
32
} else {
34
- setAppLogo ( localStorage . getItem ( "appLogo" ) || "" ) ;
33
+ setAppLogo ( logo ) ;
35
34
}
35
+ } else {
36
+ setAppLogo ( logo ) ;
36
37
}
37
38
38
39
//split url in array from '&'
@@ -178,7 +179,13 @@ function GuestLogin() {
178
179
>
179
180
< div className = "main_head" >
180
181
< div className = "w-[250px] h-[66px] inline-block overflow-hidden" >
181
- < img src = { appLogo } className = "object-contain h-full" alt = "logo" />
182
+ { appLogo && (
183
+ < img
184
+ src = { appLogo }
185
+ className = "object-contain h-full"
186
+ alt = "logo"
187
+ />
188
+ ) }
182
189
</ div >
183
190
</ div >
184
191
0 commit comments