diff --git a/apps/web/app/(org)/dashboard/settings/account/components/ProfileImage.tsx b/apps/web/app/(org)/dashboard/settings/account/components/ProfileImage.tsx index e401c3a68b..e2a6948e11 100644 --- a/apps/web/app/(org)/dashboard/settings/account/components/ProfileImage.tsx +++ b/apps/web/app/(org)/dashboard/settings/account/components/ProfileImage.tsx @@ -101,33 +101,34 @@ export function ProfileImage({ />
- {!isRemoving && ( - - )} + {(previewUrl || isRemoving) && ( )} diff --git a/apps/web/app/(org)/dashboard/settings/account/loading.tsx b/apps/web/app/(org)/dashboard/settings/account/loading.tsx index be44862a3c..62440b163e 100644 --- a/apps/web/app/(org)/dashboard/settings/account/loading.tsx +++ b/apps/web/app/(org)/dashboard/settings/account/loading.tsx @@ -7,44 +7,85 @@ export default function Loading() { (
-
- {/* First card - Name fields */} -
- {" "} - {/* Card title */} - {" "} - {/* Card description */} -
-
- {" "} - {/* First name input */} -
-
- {" "} - {/* Last name input */} +
+ {/* Profile image card */} +
+
+ {" "} + {/* Card title */} + {" "} + {/* Card description */} +
+
+
+
+ {" "} + {/* Icon placeholder */} +
+
+ + +
- {/* Second card - Email field */} -
+ {/* Your name card */} +
+
+ {" "} + {/* Card title */} + {" "} + {/* Card description */} +
+
+ {" "} + {/* First name input */} + {" "} + {/* Last name input */} +
+
+ + {/* Contact email card */} +
{" "} {/* Email input */}
+ + {/* Default organization card */} +
+
+ {" "} + {/* Card title */} + {" "} + {/* Card description */} +
+ {" "} + {/* Select dropdown */} +
{/* Save button */} @@ -74,7 +140,7 @@ export default function Loading() { {" "} {/* Button */}
diff --git a/packages/ui/src/components/Button.tsx b/packages/ui/src/components/Button.tsx index ea83036983..45f322dfab 100644 --- a/packages/ui/src/components/Button.tsx +++ b/packages/ui/src/components/Button.tsx @@ -49,6 +49,7 @@ export interface ButtonProps asChild?: boolean; spinner?: boolean; href?: string; + spinnerClassName?: string; kbd?: string; icon?: React.ReactNode; target?: string; @@ -62,6 +63,7 @@ const Button = React.forwardRef( size, asChild = false, spinner = false, + spinnerClassName, href, kbd, icon, @@ -79,7 +81,12 @@ const Button = React.forwardRef( href={href || undefined} {...props} > - {spinner && } + {spinner && ( + + )} {icon && icon} {props.children} {kbd && (