changed restore icon

This commit is contained in:
Pramod Mahajan 2025-05-30 11:38:43 +05:30
parent 15d313baf1
commit 5666616b6b
3 changed files with 11 additions and 9 deletions

View File

@ -79,10 +79,10 @@ const CardViewDirectory = ({
)} )}
{!IsActive && ( {!IsActive && (
<i <i
className={`bx bx-history ${ className={`bx ${
dirActions.action && dirActions.id === contact.id dirActions.action && dirActions.id === contact.id
? "bx-spin" ? "bx-loader-alt bx-spin"
: "" : "bx-recycle"
} me-1 text-primary cursor-pointer`} } me-1 text-primary cursor-pointer`}
title="Restore" title="Restore"
onClick={() => { onClick={() => {

View File

@ -110,8 +110,9 @@ const ListViewDirectory = ({
)} )}
{!IsActive && ( {!IsActive && (
<i <i
className={`bx bx-history ${ className={`bx ${
dirActions.action && dirActions.id === contact.id ? "bx-spin" : "" dirActions.action && dirActions.id === contact.id ? "bx-loader-alt bx-spin"
: "bx-recycle"
} me-1 text-primary cursor-pointer`} } me-1 text-primary cursor-pointer`}
title="Restore" title="Restore"
onClick={() => { onClick={() => {
@ -125,4 +126,4 @@ const ListViewDirectory = ({
); );
}; };
export default ListViewDirectory; export default ListViewDirectory;

View File

@ -156,15 +156,16 @@ const NoteCardDirectory = ({refetchProfile,refetchNotes, noteItem, contactId, se
)} )}
</> </>
) : isActivProcess ? ( ) : isActivProcess ? (
< i className='bx bx-refresh text-primary bx-spin' ></i> < i className='bx bx-loader-alt bx-spin text-primary' ></i>
) : ( ) : (
<i <i
className="bx bx-history me-1 text-primary cursor-pointer" className="bx bx-recycle me-1 text-primary cursor-pointer"
onClick={() => handleDeleteNote(!noteItem.isActive)} onClick={() => handleDeleteNote(!noteItem.isActive)}
title="Restore" title="Restore"
></i> ></i>
)} )}
</div> </div>
</div> </div>