Skip to content

Commit ab7997c

Browse files
authored
feat(menu): cyberver link (#1177)
1 parent da4648b commit ab7997c

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

src/components/appMenu/AppMenu.module.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '../../style/mixins.scss';
2+
13
.bookmarks {
24
display: flex;
35
flex-direction: column;
@@ -38,3 +40,10 @@
3840
color: #32d9ae;
3941
}
4042
}
43+
44+
.external {
45+
width: 20px;
46+
height: 20px;
47+
48+
@include withShareIcon;
49+
}

src/components/appMenu/AppMenu.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@ interface Props {
1313
}
1414

1515
function Items({ item, selected, onClick }: Props) {
16+
const isExternal = item.to.startsWith('http');
17+
1618
return (
1719
<NavLink
1820
to={item.to}
1921
className={() => {
2022
return cx(styles.bookmarks__item, { [styles.active]: selected });
2123
}}
2224
onClick={onClick}
25+
{...(isExternal && { target: '_blank', rel: 'noreferrer noopener' })}
2326
>
2427
<Pane display="flex" paddingY={5} alignItems="center" key={item.name}>
2528
<div
@@ -46,6 +49,8 @@ function Items({ item, selected, onClick }: Props) {
4649
display="flex"
4750
>
4851
{item.name}
52+
53+
{isExternal && <span className={styles.external}></span>}
4954
</Pane>
5055
</div>
5156
</Pane>

src/containers/application/AppMenu.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ const itemsMenu = () => {
8080
// ],
8181
// },
8282
{ name: 'Senate', icon: senate, to: '/senate', subItems: [] },
83+
84+
{
85+
name: 'Cyberver 🟣',
86+
icon: require('./images/cyberver.png'),
87+
to: 'https://spacepussy.ai/cyberver',
88+
subItems: [],
89+
},
8390
{ name: 'About', icon: congress, to: routes.social.path, subItems: [] },
8491
// {
8592
// name: 'Help',
53.1 KB
Loading

0 commit comments

Comments
 (0)