完成用户等级权限设置、修复下载次数不增加
Change-Id: Ia8ab0e643c86e236a5c25ac77b081cd1f3ba5976
diff --git a/src/pages/InterestGroup/GroupPosts.jsx b/src/pages/InterestGroup/GroupPosts.jsx
index 7bd16ba..d7893c7 100644
--- a/src/pages/InterestGroup/GroupPosts.jsx
+++ b/src/pages/InterestGroup/GroupPosts.jsx
@@ -2,6 +2,7 @@
import CommentForm from './CommentForm';
import { GoodTwo, Comment } from '@icon-park/react';
import './GroupDetail.css';
+import AuthButton from '../../components/AuthButton';
const GroupPosts = ({
posts,
@@ -21,12 +22,13 @@
<div className="post-list-header">
{userId && isMember && (
- <button
+ <AuthButton
+ roles={[ "chocolate", "ice-cream"]}
className="create-post-btn"
onClick={onShowCreatePost}
>
+ 发布帖子
- </button>
+ </AuthButton>
)}
{(!userId || !isMember) && <p className="login-hint">{loginHint}</p>}
</div>