Remove this case, I want to eventually make it close the popup but I haven't gotten that to work for some reason

This commit is contained in:
2026-01-07 19:36:36 -07:00
parent 1dd75f8ccf
commit 08915ad2ae

View File

@@ -614,21 +614,15 @@ export default function RootLayout ({
<> <>
<p className='text-xl text-center'>Downloads</p> <p className='text-xl text-center'>Downloads</p>
<div className='popup-content'> <div className='popup-content'>
{downloadProgress.length === 0 ? ( {downloadProgress.map((v, i) => (
<p className='text-center mt-6'>
No more downloads!
</p>
) : (
downloadProgress.map((v, i) => (
<div <div
key={i} key={i}
className='popup-entry flex flex-col justify-between' className='popup-entry flex flex-col justify-between'
> >
<p className='text-2xl text-center'> <p className='text-2xl text-center'>
{ {
getGameInfo( getGameInfo(getVersionInfo(v.version)?.game)
getVersionInfo(v.version)?.game ?.name
)?.name
}{' '} }{' '}
v{getVersionInfo(v.version)?.versionName} v{getVersionInfo(v.version)?.versionName}
</p> </p>
@@ -680,15 +674,14 @@ export default function RootLayout ({
})}{' '} })}{' '}
of{' '} of{' '}
{prettyBytes( {prettyBytes(
getVersionInfo(v.version)?.size ?? getVersionInfo(v.version)?.size ?? 0,
0,
{ {
minimumFractionDigits: 1, minimumFractionDigits: 1,
maximumFractionDigits: 1 maximumFractionDigits: 1
} }
)}{' '} )}{' '}
(ETA: {formatEtaSmart(v.etaSecs)}{' '} (ETA: {formatEtaSmart(v.etaSecs)} &bull;
&bull; Speed:{' '} Speed:{' '}
{prettyBytes(v.speed, { {prettyBytes(v.speed, {
minimumFractionDigits: 1, minimumFractionDigits: 1,
maximumFractionDigits: 1 maximumFractionDigits: 1
@@ -703,8 +696,7 @@ export default function RootLayout ({
)} )}
</div> </div>
</div> </div>
)) ))}
)}
</div> </div>
</> </>
) : popupMode === 2 ? ( ) : popupMode === 2 ? (