Commit cf80b8a 1 parent 99c9454 commit cf80b8a Copy full SHA for cf80b8a
File tree 1 file changed +8
-16
lines changed
1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,6 @@ const GithubStar: FC<GithubStarType> = ({}) => {
29
29
return < > </ >
30
30
}
31
31
32
- if ( ! stars ) {
33
- return (
34
- < a
35
- style = { { width : 90 } }
36
- target = '_blank'
37
- href = 'https://github.com/flagsmith/flagsmith'
38
- className = 'btn btn-sm btn-with-icon text-body'
39
- rel = 'noreferrer'
40
- >
41
- < IonIcon style = { { fontSize : 16 } } icon = { logoGithub } />
42
- </ a >
43
- )
44
- }
45
-
46
32
return (
47
33
< a
48
34
style = { { width : 90 } }
@@ -51,9 +37,15 @@ const GithubStar: FC<GithubStarType> = ({}) => {
51
37
className = 'btn btn-sm btn-with-icon text-body'
52
38
rel = 'noreferrer'
53
39
>
54
- < div className = 'd-flex flex-row justify-content-center align-items-center' >
40
+ < div
41
+ className = {
42
+ stars
43
+ ? 'd-flex flex-row justify-content-center align-items-center'
44
+ : ''
45
+ }
46
+ >
55
47
< IonIcon style = { { fontSize : 16 } } icon = { logoGithub } />
56
- < div className = 'ms-1' > { stars } </ div >
48
+ { stars && < div className = 'ms-1' > { stars } </ div > }
57
49
</ div >
58
50
</ a >
59
51
)
You can’t perform that action at this time.
0 commit comments