Run prettier

This commit is contained in:
deme
2023-06-01 10:06:08 -03:00
parent e7dc64ae81
commit a27d19a9ed

View File

@@ -68,8 +68,8 @@ export default function ProjectPage({
Metadata Metadata
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody className="divide-y divide-gray-200"> <tbody className="divide-y divide-gray-200">
<tr> <tr>
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> <td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
{project.name} {project.name}
@@ -89,9 +89,9 @@ export default function ProjectPage({
> >
datapackage.json <ExternalLinkIcon className="ml-1" /> datapackage.json <ExternalLinkIcon className="ml-1" />
</Link> </Link>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
@@ -99,8 +99,8 @@ export default function ProjectPage({
<p> <p>
This dataset contains {project.files.length} file This dataset contains {project.files.length} file
{project.files.length == 1 ? '' : 's'} {project.files.length == 1 ? '' : 's'}
</p> </p>
<div className="inline-block min-w-full py-2 align-middle"> <div className="inline-block min-w-full py-2 align-middle">
<table className="mt-0 min-w-full divide-y divide-gray-300"> <table className="mt-0 min-w-full divide-y divide-gray-300">
<thead> <thead>
<tr> <tr>
@@ -122,7 +122,7 @@ export default function ProjectPage({
> >
Size Size
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody className="divide-y divide-gray-200"> <tbody className="divide-y divide-gray-200">
{project.files?.map((file) => { {project.files?.map((file) => {
@@ -159,16 +159,16 @@ export default function ProjectPage({
} }
> >
Download Download
</Link> </Link>
</td> </td>
</tr> </tr>
); );
})} })}
</tbody> </tbody>
</table> </table>
</div> </div>
<div className="flex flex-col gap-y-16 "> <div className="flex flex-col gap-y-16 ">
{project.files?.map((file) => { {project.files?.map((file) => {
let size: number | string = file.size; let size: number | string = file.size;
@@ -182,9 +182,9 @@ export default function ProjectPage({
} }
} }
return ( return (
<div key={file.name} > <div key={file.name}>
{file.path && ( {file.path && (
<div className='lg:ml-[calc(50%-37vw)] lg:w-[74vw]'> <div className="lg:ml-[calc(50%-37vw)] lg:w-[74vw]">
<h4> <h4>
{file.name} {file.name}
{file.format ? `.${file.format}` : ''} {file.format ? `.${file.format}` : ''}
@@ -192,7 +192,7 @@ export default function ProjectPage({
{file.bytes >= 5132288 && ( {file.bytes >= 5132288 && (
<span>Previewing 5MB out of {size}</span> <span>Previewing 5MB out of {size}</span>
)} )}
<div className='mt-5'> <div className="mt-5">
<FlatUiTable <FlatUiTable
url={ url={
file.path.startsWith('http') file.path.startsWith('http')
@@ -206,7 +206,7 @@ export default function ProjectPage({
</div> </div>
); );
})} })}
</div> </div>
{readme && ( {readme && (
<> <>
@@ -215,7 +215,7 @@ export default function ProjectPage({
<h2 className="uppercase font-black">Readme</h2> <h2 className="uppercase font-black">Readme</h2>
<ReactMarkdown remarkPlugins={[remarkGfm]}>{readme}</ReactMarkdown> <ReactMarkdown remarkPlugins={[remarkGfm]}>{readme}</ReactMarkdown>
</> </>
)} )}
</main> </main>
</Layout> </Layout>
); );