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:
@@ -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)}{' '}
|
||||
• Speed:{' '}
|
||||
(ETA: {formatEtaSmart(v.etaSecs)} •
|
||||
Speed:{' '}
|
||||
{prettyBytes(v.speed, {
|
||||
minimumFractionDigits: 1,
|
||||
maximumFractionDigits: 1
|
||||
@@ -703,8 +696,7 @@ export default function RootLayout ({
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
))
|
||||
)}
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
) : popupMode === 2 ? (
|
||||
|
||||
Reference in New Issue
Block a user