From 50c55d41b83b0277a04c4386f27fe9c72d166cda Mon Sep 17 00:00:00 2001 From: Carson Date: Thu, 12 Dec 2024 10:09:10 -0800 Subject: [PATCH] Add uma loading animation for sending payments (#14277) https://github.com/user-attachments/assets/927a7bb7-1484-4b4d-ab78-e8002bc2c659 GitOrigin-RevId: 5ad980465107febc9c23f9d384fbffaaa23cbacd --- .../ui/src/icons/UmaPaymentLoadingSpinner.tsx | 31 +++++++++++++++++++ packages/ui/src/icons/index.tsx | 1 + 2 files changed, 32 insertions(+) create mode 100644 packages/ui/src/icons/UmaPaymentLoadingSpinner.tsx diff --git a/packages/ui/src/icons/UmaPaymentLoadingSpinner.tsx b/packages/ui/src/icons/UmaPaymentLoadingSpinner.tsx new file mode 100644 index 00000000..b223ec46 --- /dev/null +++ b/packages/ui/src/icons/UmaPaymentLoadingSpinner.tsx @@ -0,0 +1,31 @@ +import { type PathProps } from "./types.js"; + +export function UmaPaymentLoadingSpinner({ + strokeWidth = "3", + strokeLinecap = "round", +}: PathProps) { + return ( + + + + + ); +} diff --git a/packages/ui/src/icons/index.tsx b/packages/ui/src/icons/index.tsx index cd406627..3e984d5a 100644 --- a/packages/ui/src/icons/index.tsx +++ b/packages/ui/src/icons/index.tsx @@ -130,6 +130,7 @@ export { Trash } from "./Trash.js"; export { Uma } from "./Uma.js"; export { UmaBridgeLoading } from "./UmaBridgeLoading.js"; export { UmaBridgeLoadingTransparent } from "./UmaBridgeLoadingTransparent.js"; +export { UmaPaymentLoadingSpinner } from "./UmaPaymentLoadingSpinner.js"; export { Upload } from "./Upload.js"; export { WalletSDKIcon } from "./WalletSDKIcon.js"; export { WarningSign } from "./WarningSign.js";