Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 7088b4d

Browse files
committed
refactor(sidebar-footer): add discussLinker to sub-dir label
1 parent df46ba0 commit 7088b4d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/containers/Sidebar/Footer.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import React from 'react'
22
// eslint-disable-next-line import/named
3-
import { ICON_CMD } from '@config'
3+
import { ICON_CMD, ISSUE_ADDR } from '@config'
4+
5+
import Popover from '@components/Popover'
6+
import DiscussLinker from '@components/DiscussLinker'
47

58
import {
69
Wrapper,
@@ -22,7 +25,13 @@ const Footer = ({ pin, showFooterShadow, sortOptActive }) => (
2225
排序
2326
</OptionItem>
2427
<OptionDivider />
25-
<OptionItem>分组</OptionItem>
28+
<Popover
29+
placement="top"
30+
trigger="hover"
31+
content={<DiscussLinker title="分组" addr={`${ISSUE_ADDR}/597`} />}
32+
>
33+
<OptionItem>分组</OptionItem>
34+
</Popover>
2635
</OptionWrapper>
2736
</InnerWrapper>
2837
</Wrapper>

0 commit comments

Comments
 (0)