mirror of
https://github.com/wassname/talk.git
synced 2026-08-07 11:29:44 +08:00
Implement dangling
This commit is contained in:
@@ -7,7 +7,7 @@ import { Icon } from 'coral-ui';
|
||||
|
||||
import t from 'coral-framework/services/i18n';
|
||||
|
||||
const RejectButton = ({ active, minimal, onClick, className }) => {
|
||||
const RejectButton = ({ active, minimal, onClick, className, disabled }) => {
|
||||
const text = active ? t('modqueue.rejected') : t('modqueue.reject');
|
||||
return (
|
||||
<button
|
||||
@@ -17,6 +17,7 @@ const RejectButton = ({ active, minimal, onClick, className }) => {
|
||||
className
|
||||
)}
|
||||
onClick={onClick}
|
||||
disabled={disabled || active}
|
||||
>
|
||||
<Icon name={'close'} className={styles.icon} />
|
||||
{!minimal && text}
|
||||
@@ -29,6 +30,7 @@ RejectButton.propTypes = {
|
||||
active: PropTypes.bool,
|
||||
minimal: PropTypes.bool,
|
||||
onClick: PropTypes.func,
|
||||
disabled: PropTypes.bool,
|
||||
};
|
||||
|
||||
export default RejectButton;
|
||||
|
||||
Reference in New Issue
Block a user