File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useCallback } from 'react'
2
- import { border , flexCenter } from '../../lib/styled/styleFunctions'
2
+ import {
3
+ border ,
4
+ flexCenter ,
5
+ secondaryButtonStyle ,
6
+ } from '../../lib/styled/styleFunctions'
3
7
import styled from '../../lib/styled'
4
8
import { useRouter } from '../../lib/router'
9
+ import Icon from '../atoms/Icon'
10
+ import { mdiAccountMultiple } from '@mdi/js'
5
11
6
12
const Container = styled . div `
7
13
position: relative;
@@ -16,12 +22,28 @@ const Container = styled.div`
16
22
border-width: 3px;
17
23
border-style: solid;
18
24
border-color: transparent;
25
+ cursor: pointer;
19
26
&:hover {
20
27
border-color: ${ ( { theme } ) => theme . borderColor } ;
21
28
}
22
29
&.active {
23
30
border-color: ${ ( { theme } ) => theme . textColor } ;
24
31
}
32
+
33
+ & > .teamIcon {
34
+ height: 20px;
35
+ width: 20px;
36
+ border-radius: 10px;
37
+ background-color: ${ ( { theme } ) => theme . navBackgroundColor } ;
38
+ ${ border }
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: center;
42
+ position: absolute;
43
+ bottom: -5px;
44
+ right: -5px;
45
+ z-index: 1;
46
+ }
25
47
`
26
48
27
49
const MainButton = styled . button `
@@ -82,13 +104,17 @@ const AppNavigatorBoostHubTeamItem = ({
82
104
className = { active ? 'active' : '' }
83
105
onClick = { navigateToTeam }
84
106
>
85
- < MainButton className = { active ? 'active' : '' } onClick = { navigateToTeam } >
107
+ < MainButton className = { active ? 'active' : '' } >
86
108
{ iconUrl == null ? (
87
109
name . slice ( 0 , 1 )
88
110
) : (
89
111
< img className = 'icon' src = { iconUrl } />
90
112
) }
91
113
</ MainButton >
114
+
115
+ < div className = 'teamIcon' >
116
+ < Icon path = { mdiAccountMultiple } />
117
+ </ div >
92
118
</ Container >
93
119
)
94
120
}
You can’t perform that action at this time.
0 commit comments