refactor(frontend): complete BEM design system
This commit is contained in:
@@ -32,14 +32,14 @@ export function ClearHistoryModal({ onClose, onDone }: Props) {
|
||||
|
||||
return (
|
||||
<div
|
||||
className="modal-backdrop"
|
||||
className="modal"
|
||||
onMouseDown={(e) => {
|
||||
if (e.target === e.currentTarget) onClose();
|
||||
}}
|
||||
>
|
||||
<div className="modal" onClick={(e) => e.stopPropagation()}>
|
||||
<div className="modal__dialog" onClick={(e) => e.stopPropagation()}>
|
||||
<div className="modal__header">
|
||||
<h2>Очистить историю операций</h2>
|
||||
<h2 className="modal__title">Очистить историю операций</h2>
|
||||
<button className="modal__close-button" onClick={onClose} aria-label="Закрыть">
|
||||
×
|
||||
</button>
|
||||
@@ -53,8 +53,8 @@ export function ClearHistoryModal({ onClose, onDone }: Props) {
|
||||
|
||||
{error && <div className="alert alert--error">{error}</div>}
|
||||
|
||||
<div className="field field--checkbox danger-note__check">
|
||||
<label>
|
||||
<div className="field field--checkbox field--flush">
|
||||
<label className="field__label field__label--checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={check1}
|
||||
@@ -64,8 +64,8 @@ export function ClearHistoryModal({ onClose, onDone }: Props) {
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div className="field field--checkbox danger-note__check">
|
||||
<label>
|
||||
<div className="field field--checkbox field--flush">
|
||||
<label className="field__label field__label--checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={check2}
|
||||
@@ -79,13 +79,13 @@ export function ClearHistoryModal({ onClose, onDone }: Props) {
|
||||
|
||||
<div className="modal__footer">
|
||||
<button
|
||||
className="button button--danger"
|
||||
className="button button--danger modal__action"
|
||||
onClick={handleConfirm}
|
||||
disabled={!canConfirm || loading}
|
||||
>
|
||||
{loading ? 'Удаление…' : 'Удалить всё'}
|
||||
</button>
|
||||
<button className="button button--secondary" onClick={onClose}>
|
||||
<button className="button button--secondary modal__action" onClick={onClose}>
|
||||
Отмена
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user