A bajillion type errors
This commit is contained in:
parent
dfcb95bd0d
commit
9fecf5bbfa
10 changed files with 36 additions and 45 deletions
|
@ -1,4 +1,4 @@
|
|||
import type { Metadata, ResolvingMetadata } from 'next';
|
||||
import type { Metadata } from 'next';
|
||||
import Image from 'next/image';
|
||||
|
||||
import DownloadTTY from './download_tty';
|
||||
|
@ -10,7 +10,7 @@ import download_image_light from './download_light.svg';
|
|||
type SearchParams = { [key: string]: string | string[] | undefined };
|
||||
|
||||
type Props = {
|
||||
params: { file: string },
|
||||
params: { file: string[] },
|
||||
searchParams: SearchParams,
|
||||
};
|
||||
|
||||
|
@ -24,7 +24,6 @@ function get_root(search_params: SearchParams) {
|
|||
|
||||
export async function generateMetadata(
|
||||
{ params, searchParams }: Props,
|
||||
parent: ResolvingMetadata,
|
||||
): Promise<Metadata> {
|
||||
return {
|
||||
title: `${get_path(params.file)} | ${get_root(searchParams)}`,
|
||||
|
@ -52,7 +51,7 @@ export default async function Page({
|
|||
<p className={style.title}>{path}</p>
|
||||
</div>
|
||||
<button className={style.download_button}>
|
||||
<a className={style.download_link} href={full} download>
|
||||
<a href={full} download>
|
||||
<Image
|
||||
className={style.download_button_image_dark}
|
||||
src={download_image_dark}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue