0
0
Fork 0

Add preview of followers removed in domain block modal in web UI (#32032)

This commit is contained in:
Eugen Rochko 2024-09-25 20:13:36 +02:00 committed by GitHub
parent 28c4eca0af
commit 3426ea2912
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 274 additions and 108 deletions

View file

@ -7,6 +7,7 @@ interface BaseProps
extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
block?: boolean;
secondary?: boolean;
dangerous?: boolean;
}
interface PropsChildren extends PropsWithChildren<BaseProps> {
@ -26,6 +27,7 @@ export const Button: React.FC<Props> = ({
disabled,
block,
secondary,
dangerous,
className,
title,
text,
@ -46,6 +48,7 @@ export const Button: React.FC<Props> = ({
className={classNames('button', className, {
'button-secondary': secondary,
'button--block': block,
'button--dangerous': dangerous,
})}
disabled={disabled}
onClick={handleClick}