1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

added loading circle for creating comment

This commit is contained in:
Fedor Katurov 2022-07-18 15:32:54 +07:00
parent bb81bdae69
commit fa17aac056
6 changed files with 23 additions and 21 deletions

View file

@ -92,8 +92,6 @@ const CommentForm: FC<IProps> = observer(({ comment, nodeId, saveComment, onCanc
<Filler />
<div className={styles.button_column}>
{isLoading && <LoaderCircle size={20} />}
{isEditing && (
<Button size="small" color="link" type="button" onClick={onCancelEdit}>
Отмена
@ -106,6 +104,7 @@ const CommentForm: FC<IProps> = observer(({ comment, nodeId, saveComment, onCanc
color="gray"
iconRight={!isEditing ? 'enter' : 'check'}
disabled={isLoading}
loading={isLoading}
>
{!isEditing ? 'Сказать' : 'Сохранить'}
</Button>