mirror of
https://github.com/wassname/talk.git
synced 2026-08-20 12:50:41 +08:00
Add some global css classes
This commit is contained in:
@@ -2,13 +2,14 @@ import React from 'react';
|
||||
import Menu from './Menu';
|
||||
import styles from './AuthorName.css';
|
||||
import {ClickOutside} from 'plugin-api/beta/client/components';
|
||||
import cn from 'classnames';
|
||||
|
||||
export default ({data, root, asset, comment, contentSlot, menuVisible, toggleMenu, hideMenu}) => {
|
||||
return (
|
||||
<ClickOutside onClickOutside={hideMenu}>
|
||||
<div className={styles.root}>
|
||||
<div className={cn(styles.root, 'talk-plugin-author-menu')}>
|
||||
<button
|
||||
className={styles.button}
|
||||
className={cn(styles.button, 'talk-plugin-author-menu-button')}
|
||||
onClick={toggleMenu}
|
||||
>
|
||||
<span className={styles.name}>
|
||||
|
||||
Reference in New Issue
Block a user