Add approval by to step details panel and add text size prop to UserWithProfilePicture component

This commit is contained in:
Joao Correia
2025-01-25 04:23:28 +00:00
parent f71a7182dd
commit 2eff08bf86
2 changed files with 26 additions and 5 deletions

View File

@@ -4,12 +4,14 @@ interface Props {
prefix: string;
name: string;
profileImage: string;
textSize?: string;
}
export default function UserWithProfilePic({ prefix, name, profileImage }: Props) {
export default function UserWithProfilePic({ prefix, name, profileImage, textSize }: Props) {
const textClassName = `${textSize ? textSize : "text-xs"} font-medium`
return (
<div className="flex items-center space-x-2">
<p className="text-xs font-medium">{prefix} {name}</p>
<p className={textClassName}>{prefix} {name}</p>
<Image
src={profileImage}
alt={name}