File tree Expand file tree Collapse file tree 2 files changed +25
-16
lines changed Expand file tree Collapse file tree 2 files changed +25
-16
lines changed Original file line number Diff line number Diff line change 18
18
19
19
.locationSkeleton {
20
20
height : 22px !important ;
21
- width : 165 px ;
21
+ width : 190 px ;
22
22
margin-top : 1px ;
23
23
}
24
24
Original file line number Diff line number Diff line change @@ -45,22 +45,31 @@ const UserInfoPage: FunctionComponent = () => {
45
45
< Skeleton . Input active className = { styles . ipDataProviderSkeleton } />
46
46
</ >
47
47
) : (
48
- < >
49
- < Text strong className = { styles . ipAddress } >
50
- < Text strong > IP: </ Text >
51
- < Text copyable > { userIpInfo ?. ip } </ Text >
52
- </ Text >
53
- < Text >
54
- < Text strong > Location:</ Text >
55
- < Text className = "ms-1" >
56
- { userIpInfo ?. countryName } , { userIpInfo ?. city }
48
+ userIpInfo && (
49
+ < >
50
+ < Text strong className = { styles . ipAddress } >
51
+ < Text strong > IP: </ Text >
52
+ < Text copyable > { userIpInfo . ip } </ Text >
57
53
</ Text >
58
- </ Text >
59
- < Text type = "secondary" >
60
- The data is provided by{ ' ' }
61
- < ExternalLink href = "https://ipapi.co/" > ipapi.co</ ExternalLink >
62
- </ Text >
63
- </ >
54
+ < Text className = "d-flex align-items-center" >
55
+ < Text strong > Location:</ Text >
56
+ < img
57
+ className = "ms-2"
58
+ src = { `https://purecatamphetamine.github.io/country-flag-icons/3x2/${ userIpInfo . country } .svg` }
59
+ alt = { userIpInfo . country }
60
+ height = { 12 }
61
+ width = { 18 }
62
+ />
63
+ < Text className = "ms-1" >
64
+ { userIpInfo . countryName } , { userIpInfo . city }
65
+ </ Text >
66
+ </ Text >
67
+ < Text type = "secondary" >
68
+ The data is provided by{ ' ' }
69
+ < ExternalLink href = "https://ipapi.co/" > ipapi.co</ ExternalLink >
70
+ </ Text >
71
+ </ >
72
+ )
64
73
) }
65
74
</ Space >
66
75
) }
You can’t perform that action at this time.
0 commit comments