This repository was archived by the owner on Mar 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +21
-13
lines changed Expand file tree Collapse file tree 1 file changed +21
-13
lines changed Original file line number Diff line number Diff line change 1
1
// @flow
2
2
3
3
import * as React from "react" ;
4
- import { List , Media } from "../../components " ;
4
+ import { List , Media , Tooltip } from "../" ;
5
5
6
6
type Props = { |
7
7
+ children ? : React . Node ,
@@ -32,39 +32,47 @@ function MediaBodySocial({
32
32
if ( facebook ) {
33
33
fbIcon = (
34
34
< List . Item className = "list-inline-item" >
35
- < a href = "/Profile" >
36
- < i className = "fa fa-facebook" />
37
- </ a >
35
+ < Tooltip content = "Facebook" placement = "top" >
36
+ < a href = "/Profile" >
37
+ < i className = "fa fa-facebook" />
38
+ </ a >
39
+ </ Tooltip >
38
40
</ List . Item >
39
41
) ;
40
42
}
41
43
42
44
if ( twitter ) {
43
45
twitterIcon = (
44
46
< List . Item className = "list-inline-item" >
45
- < a href = "/Profile" data-original-title = "Twitter" >
46
- < i className = "fa fa-twitter" />
47
- </ a >
47
+ < Tooltip content = "Twitter" placement = "top" >
48
+ < a href = "/Profile" >
49
+ < i className = "fa fa-twitter" />
50
+ </ a >
51
+ </ Tooltip >
48
52
</ List . Item >
49
53
) ;
50
54
}
51
55
52
56
if ( phone ) {
53
57
phoneIcon = (
54
58
< List . Item className = "list-inline-item" >
55
- < a href = "/Profile" data-original-title = "1234567890" >
56
- < i className = "fa fa-phone" />
57
- </ a >
59
+ < Tooltip content = "+1 234-567-8901" placement = "top" >
60
+ < a href = "/Profile" >
61
+ < i className = "fa fa-phone" />
62
+ </ a >
63
+ </ Tooltip >
58
64
</ List . Item >
59
65
) ;
60
66
}
61
67
62
68
if ( skype ) {
63
69
skypeIcon = (
64
70
< List . Item className = "list-inline-item" >
65
- < a href = "/Profile" data-original-title = "@skypename" >
66
- < i className = "fa fa-skype" />
67
- </ a >
71
+ < Tooltip content = "@skypename" placement = "top" >
72
+ < a href = "/Profile" >
73
+ < i className = "fa fa-skype" />
74
+ </ a >
75
+ </ Tooltip >
68
76
</ List . Item >
69
77
) ;
70
78
}
You can’t perform that action at this time.
0 commit comments