[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
|
||||
:{ image}
|
||||
:{ image,description}
|
||||
}: Props){
|
||||
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="logo_wrapper">
|
||||
<figure className="mb-0"><YogaImageComponent src={strapiApi.getImageUrl(imageFile?.url)} alt="" className="img-fluid"/></figure>
|
||||
<div className="logo_content">
|
||||
{description}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ export interface Article {
|
||||
cover?: { data: Media };
|
||||
author?: { data: Author };
|
||||
category?: { data: Category };
|
||||
blocks?: object;
|
||||
blocks?: any;
|
||||
};
|
||||
}
|
||||
export interface Article_Plain {
|
||||
@ -28,7 +28,7 @@ export interface Article_Plain {
|
||||
cover?: Media_Plain;
|
||||
author?: Author_Plain;
|
||||
category?: Category_Plain;
|
||||
blocks?: object;
|
||||
blocks?: any;
|
||||
}
|
||||
|
||||
export interface Article_NoRelations {
|
||||
@ -39,7 +39,7 @@ export interface Article_NoRelations {
|
||||
cover?: number;
|
||||
author?: number;
|
||||
category?: number;
|
||||
blocks?: object;
|
||||
blocks?: any;
|
||||
}
|
||||
|
||||
export interface Article_AdminPanelLifeCycle {
|
||||
@ -50,5 +50,5 @@ export interface Article_AdminPanelLifeCycle {
|
||||
cover?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
author?: AdminPanelRelationPropertyModification<Author_Plain>;
|
||||
category?: AdminPanelRelationPropertyModification<Category_Plain>;
|
||||
blocks?: object;
|
||||
blocks?: any;
|
||||
}
|
||||
|
||||
@ -10,6 +10,7 @@ export interface YogaAchivement {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
||||
image?: { data: Media };
|
||||
name?: string;
|
||||
description?: string;
|
||||
};
|
||||
}
|
||||
export interface YogaAchivement_Plain {
|
||||
@ -17,6 +18,7 @@ export interface YogaAchivement_Plain {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
||||
image?: Media_Plain;
|
||||
name?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface YogaAchivement_NoRelations {
|
||||
@ -24,6 +26,7 @@ export interface YogaAchivement_NoRelations {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
||||
image?: number;
|
||||
name?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface YogaAchivement_AdminPanelLifeCycle {
|
||||
@ -31,4 +34,5 @@ export interface YogaAchivement_AdminPanelLifeCycle {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
|
||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
name?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user