Portofolio

Add:
- ervice/api-client/api-portofolio.ts
- creens/Portofolio/BoxPortofolioView.tsx
- screens/Portofolio/ButtonCreatePortofolio.tsx
- create dan show

### No Issue
This commit is contained in:
2025-08-29 17:42:33 +08:00
parent 88527d5bb6
commit 41a4a94255
18 changed files with 624 additions and 271 deletions

View File

@@ -16,6 +16,7 @@ const sizeMap = {
interface AvatarCompProps {
fileId?: string;
fileIdDefault?: string;
size: Size;
onPress?: () => void | any;
href?: Href | undefined | any;
@@ -23,6 +24,7 @@ interface AvatarCompProps {
export default function AvatarComp({
fileId,
fileIdDefault,
size,
onPress,
href = `/(application)/(image)/preview-image/${fileId}`,
@@ -34,7 +36,11 @@ export default function AvatarComp({
<Avatar.Image
size={dimension}
source={
fileId ? { uri: API_STRORAGE.GET({ fileId }) } : DUMMY_IMAGE.avatar
fileId
? { uri: API_STRORAGE.GET({ fileId }) }
: fileIdDefault
? fileIdDefault
: DUMMY_IMAGE.avatar
}
/>
);