[yoga-4] upgrade strapi, add description to yoga achievement
This commit is contained in:
parent
9036b9ab46
commit
cb2b88c53d
@ -8,7 +8,7 @@ export interface Props{
|
|||||||
|
|
||||||
}
|
}
|
||||||
export default function AchievementsItemComponent({achievement
|
export default function AchievementsItemComponent({achievement
|
||||||
:{ image}
|
:{ image,description}
|
||||||
}: Props){
|
}: Props){
|
||||||
const imageFile: StrapiFile = image as StrapiFile;
|
const imageFile: StrapiFile = image as StrapiFile;
|
||||||
|
|
||||||
@ -16,6 +16,9 @@ const imageFile: StrapiFile = image as StrapiFile;
|
|||||||
<div className="col-lg-2 col-md-4 col-sm-6 col-xs-12">
|
<div className="col-lg-2 col-md-4 col-sm-6 col-xs-12">
|
||||||
<div className="logo_wrapper">
|
<div className="logo_wrapper">
|
||||||
<figure className="mb-0"><YogaImageComponent src={strapiApi.getImageUrl(imageFile?.url)} alt="" className="img-fluid"/></figure>
|
<figure className="mb-0"><YogaImageComponent src={strapiApi.getImageUrl(imageFile?.url)} alt="" className="img-fluid"/></figure>
|
||||||
|
<div className="logo_content">
|
||||||
|
{description}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ export interface Article {
|
|||||||
cover?: { data: Media };
|
cover?: { data: Media };
|
||||||
author?: { data: Author };
|
author?: { data: Author };
|
||||||
category?: { data: Category };
|
category?: { data: Category };
|
||||||
blocks?: object;
|
blocks?: any;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
export interface Article_Plain {
|
export interface Article_Plain {
|
||||||
@ -28,7 +28,7 @@ export interface Article_Plain {
|
|||||||
cover?: Media_Plain;
|
cover?: Media_Plain;
|
||||||
author?: Author_Plain;
|
author?: Author_Plain;
|
||||||
category?: Category_Plain;
|
category?: Category_Plain;
|
||||||
blocks?: object;
|
blocks?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Article_NoRelations {
|
export interface Article_NoRelations {
|
||||||
@ -39,7 +39,7 @@ export interface Article_NoRelations {
|
|||||||
cover?: number;
|
cover?: number;
|
||||||
author?: number;
|
author?: number;
|
||||||
category?: number;
|
category?: number;
|
||||||
blocks?: object;
|
blocks?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Article_AdminPanelLifeCycle {
|
export interface Article_AdminPanelLifeCycle {
|
||||||
@ -50,5 +50,5 @@ export interface Article_AdminPanelLifeCycle {
|
|||||||
cover?: AdminPanelRelationPropertyModification<Media_Plain>;
|
cover?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||||
author?: AdminPanelRelationPropertyModification<Author_Plain>;
|
author?: AdminPanelRelationPropertyModification<Author_Plain>;
|
||||||
category?: AdminPanelRelationPropertyModification<Category_Plain>;
|
category?: AdminPanelRelationPropertyModification<Category_Plain>;
|
||||||
blocks?: object;
|
blocks?: any;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,6 +10,7 @@ export interface YogaAchivement {
|
|||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
||||||
image?: { data: Media };
|
image?: { data: Media };
|
||||||
name?: string;
|
name?: string;
|
||||||
|
description?: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
export interface YogaAchivement_Plain {
|
export interface YogaAchivement_Plain {
|
||||||
@ -17,6 +18,7 @@ export interface YogaAchivement_Plain {
|
|||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
||||||
image?: Media_Plain;
|
image?: Media_Plain;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface YogaAchivement_NoRelations {
|
export interface YogaAchivement_NoRelations {
|
||||||
@ -24,6 +26,7 @@ export interface YogaAchivement_NoRelations {
|
|||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
||||||
image?: number;
|
image?: number;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface YogaAchivement_AdminPanelLifeCycle {
|
export interface YogaAchivement_AdminPanelLifeCycle {
|
||||||
@ -31,4 +34,5 @@ export interface YogaAchivement_AdminPanelLifeCycle {
|
|||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
||||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user