Support custom text in notify button
This commit is contained in:
@@ -4,11 +4,12 @@ import { FC } from 'react';
|
||||
import styles from './ActionButton/ActionButton.module.scss';
|
||||
|
||||
export type NotifyButtonProps = {
|
||||
text?: string;
|
||||
onClick?: () => void;
|
||||
};
|
||||
|
||||
export const NotifyButton: FC<NotifyButtonProps> = ({ onClick }) => (
|
||||
export const NotifyButton: FC<NotifyButtonProps> = ({ onClick, text }) => (
|
||||
<Button type="primary" className={`${styles.button}`} icon={<BellFilled />} onClick={onClick}>
|
||||
Notify
|
||||
{text || 'Notify'}
|
||||
</Button>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user