|
@@ -14,7 +14,7 @@ import {extractSubstring} from "@/services/api.ts";
|
|
|
import axios from "axios";
|
|
|
|
|
|
interface FeatureProps {
|
|
|
- title: string;
|
|
|
+ name: string;
|
|
|
description: string;
|
|
|
image: string;
|
|
|
}
|
|
@@ -72,7 +72,7 @@ export const Features = () => {
|
|
|
userWebsiteId: userWebsiteId
|
|
|
}
|
|
|
});
|
|
|
- features = response2.data.data.map((item, index) => {
|
|
|
+ features = response2.data.data.map((item:FeatureProps, index:number) => {
|
|
|
return {
|
|
|
title: item.name,
|
|
|
description: item.description.substring(0, 200) + '...',
|
|
@@ -119,10 +119,10 @@ export const Features = () => {
|
|
|
</div>
|
|
|
|
|
|
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
|
|
- {features.map(({ title, description, image }: FeatureProps) => (
|
|
|
- <Card key={title}>
|
|
|
+ {features.map(({ name, description, image }: FeatureProps) => (
|
|
|
+ <Card key={name}>
|
|
|
<CardHeader>
|
|
|
- <CardTitle>{title}</CardTitle>
|
|
|
+ <CardTitle>{name}</CardTitle>
|
|
|
</CardHeader>
|
|
|
|
|
|
<CardContent>{description}</CardContent>
|