Skip to content

Commit

Permalink
fix(GoalAchievement): used components improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaEats committed Jun 16, 2023
1 parent d47fe6e commit b98a2c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/UserGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ const UserImage = styled(UserPic)`
export const UserGroup: FC<{
users: NonNullable<ActivityByIdReturnType>[];
className?: string;
}> = ({ users, className }) => {
size?: number;
}> = ({ users, className, size = 24 }) => {
return (
<UserGroupContainer className={className}>
{users.map(({ user, ghost }, i) => (
<UserContainer key={i}>
<UserImage src={user?.image} email={user?.email || ghost?.email} size={24} />
<UserImage src={user?.image} email={user?.email || ghost?.email} size={size} />
</UserContainer>
))}
</UserGroupContainer>
Expand Down
2 changes: 2 additions & 0 deletions trpc/inferredTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ export type ProjectByIdReturnType = RouterOutputs['project']['getById'];
export type ProjectUpdateReturnType = RouterOutputs['project']['update'];
export type GoalByIdReturnType = RouterOutputs['goal']['getById'];
export type ActivityByIdReturnType = RouterOutputs['user']['suggestions'][number];
export type GoalEstimate = NonNullable<GoalByIdReturnType>['_lastEstimate'];
export type GoalAchiveCriteria = NonNullable<GoalByIdReturnType>['goalAchiveCriteria'][number];

0 comments on commit b98a2c9

Please sign in to comment.