Skip to content

Commit

Permalink
💄 Show Users symbol when permission-user is 'Global'
Browse files Browse the repository at this point in the history
💄 Show Users symbol when permission-user is 'Global'
  • Loading branch information
BerkeAras authored Feb 16, 2022
2 parents 02f79b6 + 1cd06a7 commit dc38b8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import './style.scss'
import { Icon, Button, Message, Modal, Input, Form, Checkbox, Loader, List } from 'semantic-ui-react'
import PropTypes from 'prop-types'
import W_Modal from '../../W_Modal'
import { Trash2, Lock, Zap, User, ChevronRight } from 'react-feather'
import { Trash2, Lock, Zap, User, Users, ChevronRight } from 'react-feather'

export default function KnowledgeBaseModifyFolderModal(props) {
const [folderName, setFolderName] = useState(props.modifyFolderName)
Expand Down Expand Up @@ -287,7 +287,7 @@ export default function KnowledgeBaseModifyFolderModal(props) {
>
<List.Content>
<div className="item-avatar">
<User size={18} />
{!user.user ? <Users size={18} /> : <User size={18} />}
</div>
{!user.user ? 'Global' : user.user.name}
<ChevronRight />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default function KnowledgeBaseNewFolderModal(props) {
>
<List.Content>
<div className="item-avatar">
<User size={18} />
{!user.user ? <Users size={18} /> : <User size={18} />}
</div>
{!user.user ? 'Global' : user.user.name}
<ChevronRight />
Expand Down

1 comment on commit dc38b8e

@vercel
Copy link

@vercel vercel bot commented on dc38b8e Feb 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.