Add ability to set a user as a moderator via the admin (#355)

* Add moderators

* Remove passing unused prop

* Fix linter not running
This commit is contained in:
Gabe Kangas
2021-11-02 17:06:46 -07:00
committed by GitHub
parent 565d007a40
commit 24cb1ed0f1
8 changed files with 133 additions and 1073 deletions

View File

@@ -7,6 +7,7 @@ import format from 'date-fns/format';
import { uniq } from 'lodash';
import BlockUserbutton from './ban-user-button';
import ModeratorUserbutton from './moderator-user-button';
import { User, UserConnectionInfo } from '../types/chat';
import { formatDisplayDate } from './user-table';
@@ -136,6 +137,7 @@ export default function UserPopover({ user, connectionInfo, children }: UserPopo
onClick={handleCloseModal}
/>
)}
<ModeratorUserbutton user={user} onClick={handleCloseModal} />
</div>
</Modal>
</>