Skip to content

Commit 38f59e4

Browse files
committed
Roll back team icon
1 parent 275a8ff commit 38f59e4

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

src/components/molecules/AppNavigatorBoostHubTeamItem.tsx

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
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'
37
import styled from '../../lib/styled'
48
import { useRouter } from '../../lib/router'
9+
import Icon from '../atoms/Icon'
10+
import { mdiAccountMultiple } from '@mdi/js'
511

612
const Container = styled.div`
713
position: relative;
@@ -16,12 +22,28 @@ const Container = styled.div`
1622
border-width: 3px;
1723
border-style: solid;
1824
border-color: transparent;
25+
cursor: pointer;
1926
&:hover {
2027
border-color: ${({ theme }) => theme.borderColor};
2128
}
2229
&.active {
2330
border-color: ${({ theme }) => theme.textColor};
2431
}
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+
}
2547
`
2648

2749
const MainButton = styled.button`
@@ -82,13 +104,17 @@ const AppNavigatorBoostHubTeamItem = ({
82104
className={active ? 'active' : ''}
83105
onClick={navigateToTeam}
84106
>
85-
<MainButton className={active ? 'active' : ''} onClick={navigateToTeam}>
107+
<MainButton className={active ? 'active' : ''}>
86108
{iconUrl == null ? (
87109
name.slice(0, 1)
88110
) : (
89111
<img className='icon' src={iconUrl} />
90112
)}
91113
</MainButton>
114+
115+
<div className='teamIcon'>
116+
<Icon path={mdiAccountMultiple} />
117+
</div>
92118
</Container>
93119
)
94120
}

0 commit comments

Comments
 (0)