Skip to content

Commit

Permalink
Refact: Changed showcase to use CuAvatar not Avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltySalt77 committed Feb 14, 2024
1 parent 3ba13ba commit c0bf17f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/showcase/panel/ShowcaseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const ShowcaseCard = ({
>
<PostCard
postId={data.id}
authorImage={data.image}
authorImage={data.teamLogo}
title={data.name}
teamName={data.name}
tagList={data.skill}
Expand Down
6 changes: 3 additions & 3 deletions src/app/showcase/panel/ShowcasePc/ShowcasePcView.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client'

import {
Avatar,
Button,
Card,
CardActions,
Expand All @@ -23,6 +22,7 @@ import NoDataDolphin from '@/components/NoDataDolphin'
import DynamicToastViewer from '@/components/DynamicToastViewer'
import ShareMenuItem from '@/components/dropdownMenu/ShareMenuItem'
import ReportMenuItem from '@/components/dropdownMenu/ReportMenuItem'
import CuAvatar from '@/components/CuAvatar'

function leftPad(value: number) {
if (value >= 10) {
Expand Down Expand Up @@ -128,8 +128,8 @@ const ShowcasePcView = ({ data }: { data: ICardData | undefined }) => {
justifyContent={'space-between'}
>
<Stack direction={'row'} spacing={'0.5rem'}>
<Avatar
src={data.teamLogo!}
<CuAvatar
src={data.teamLogo ?? undefined}
sx={{ width: '1.5rem', height: '1.5rem' }}
/>
<Typography color={'text.alternative'} width={'11rem'}>
Expand Down

0 comments on commit c0bf17f

Please sign in to comment.