@@ -21,7 +21,7 @@ import OriginalCard, {
21
21
import DocLink from "@/components/DocLink"
22
22
import FeedbackCard from "@/components/FeedbackCard"
23
23
import { HubHero } from "@/components/Hero"
24
- import { Image } from "@/components/Image"
24
+ import { Image , type ImageProps } from "@/components/Image"
25
25
import LeftNavBar from "@/components/LeftNavBar"
26
26
import InlineLink from "@/components/Link"
27
27
import { ContentContainer } from "@/components/MdComponents"
@@ -121,6 +121,10 @@ const H3 = ({ children, ...props }: HeadingProps) => (
121
121
</ OldHeading >
122
122
)
123
123
124
+ type Props = SSRConfig & {
125
+ lastDeployDate : string
126
+ }
127
+
124
128
export const getStaticProps = ( async ( context ) => {
125
129
const { locale } = context
126
130
@@ -134,7 +138,7 @@ export const getStaticProps = (async (context) => {
134
138
lastDeployDate,
135
139
} ,
136
140
}
137
- } ) satisfies GetStaticProps < SSRConfig >
141
+ } ) satisfies GetStaticProps < Props >
138
142
139
143
const LearnPage = ( ) => {
140
144
const { t } = useTranslation ( "page-learn" )
@@ -195,7 +199,10 @@ const LearnPage = () => {
195
199
] ,
196
200
}
197
201
198
- const height200 = { h : 200 , style : { width : "auto" } }
202
+ const height200 : Partial < ImageProps > = {
203
+ height : 200 ,
204
+ style : { width : "auto" , objectFit : "cover" } ,
205
+ }
199
206
200
207
return (
201
208
< Box position = "relative" w = "full" >
0 commit comments