nicolium: remove Button component from the modal

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-18 15:01:40 +01:00
parent bffe24dead
commit 1528bcbe00
2 changed files with 13 additions and 4 deletions

View File

@ -4,7 +4,6 @@ import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
import { useOwnAccount } from '@/hooks/use-own-account';
import Button from './button';
import { ButtonThemes } from './button/useButtonStyles';
import IconButton from './icon-button';
@ -163,14 +162,16 @@ const Modal = React.forwardRef<HTMLDivElement, IModal>(
</button>
)}
<Button
theme={confirmationTheme ?? 'primary'}
<button
className={clsx('⁂-modal__action', {
'⁂-modal__action--danger': confirmationTheme === 'danger',
})}
onClick={confirmationAction}
disabled={confirmationDisabled}
ref={buttonRef}
>
{confirmationText}
</Button>
</button>
</div>
</div>
)}

View File

@ -392,6 +392,14 @@ div[data-viewport-type='window']:has(.⁂-empty-message) {
@include mixins.button($theme: tertiary);
}
button.-modal__action {
@include mixins.button($theme: primary);
&--danger {
@include mixins.button($theme: danger);
}
}
button.-modal__action-secondary {
@include mixins.button($theme: secondary);
}