mirror of
https://github.com/usememos/memos.git
synced 2024-12-19 09:02:49 +03:00
chore: add icon for deleting resource (#414)
This commit is contained in:
parent
37bb3bc546
commit
78b4733fb9
@ -183,9 +183,10 @@ const ResourcesDialog: React.FC<Props> = (props: Props) => {
|
||||
</div>
|
||||
</div>
|
||||
<div className="buttons-wrapper">
|
||||
<button className="delete-unused-resource-btn" onClick={handleDeleteUnusedResourcesBtnClick}>
|
||||
{t("resources.clear-unused-resources")}
|
||||
</button>
|
||||
<div className="delete-unused-resource-btn" onClick={handleDeleteUnusedResourcesBtnClick}>
|
||||
<Icon.Trash2 className="icon-img" />
|
||||
<span>{t("resources.clear-unused-resources")}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{loadingState.isLoading ? (
|
||||
|
@ -24,7 +24,11 @@
|
||||
}
|
||||
|
||||
> .delete-unused-resource-btn {
|
||||
@apply text-sm py-1 px-3 mr-2 rounded bg-red-100 border border-solid border-red-600 text-red-600 hover:opacity-80;
|
||||
@apply text-sm cursor-pointer px-3 py-1 rounded flex flex-row justify-center items-center border border-red-600 text-red-600 bg-red-100 hover:opacity-80;
|
||||
|
||||
> .icon-img {
|
||||
@apply w-4 h-auto mr-1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user