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