fix the PR gated

This commit is contained in:
Yifei Hu 2024-07-10 11:20:06 +08:00
parent effd1d38d0
commit ca4dfec84b
4 changed files with 31 additions and 7 deletions

View file

@ -1,13 +1,38 @@
import React from "react";
import ContextItem from "./ContextItem";
interface ContextItemType {
name: string;
url: string;
description: string;
provider: {
name: string;
image?: {
thumbnail: {
contentUrl: string;
};
};
}[];
datePublished: string;
image?: {
contentUrl: string;
thumbnail: {
contentUrl: string;
width: number;
height: number;
};
};
article?: string;
score?: number;
}
interface NewsDetailProps {
news: {
title: string;
sections: {
title: string;
content: string;
context: any[];
context: ContextItemType[];
}[];
};
}
@ -32,4 +57,4 @@ const NewsDetail: React.FC<NewsDetailProps> = ({ news }) => {
);
};
export default NewsDetail;
export default NewsDetail;