enclose prettier glob filename matches, close #393

This commit is contained in:
spencerwooo
2022-02-10 10:21:41 +08:00
parent 52907c9753
commit cfdef30a06
7 changed files with 34 additions and 34 deletions
+4 -4
View File
@@ -12,7 +12,7 @@ import { getStoredToken } from '../utils/protectedRouteHandler'
* @param props.router Next router instance, used for reloading the page
* @param props.progress Current downloading and compression progress (returned by jszip metadata)
*/
export function DownloadingToast({ router, progress }: { router: NextRouter, progress?: string }) {
export function DownloadingToast({ router, progress }: { router: NextRouter; progress?: string }) {
const { t } = useTranslation()
return (
@@ -21,13 +21,13 @@ export function DownloadingToast({ router, progress }: { router: NextRouter, pro
<span>{progress ? t('Downloading {{progress}}%', { progress }) : t('Downloading selected files...')}</span>
<div className="relative mt-2">
<div className="overflow-hidden h-1 flex rounded bg-gray-100">
<div style={{ width: `${progress}%` }} className="text-white bg-gray-500 transition-all duration-100"></div>
<div className="flex h-1 overflow-hidden rounded bg-gray-100">
<div style={{ width: `${progress}%` }} className="bg-gray-500 text-white transition-all duration-100"></div>
</div>
</div>
</div>
<button
className="p-2 rounded bg-red-500 hover:bg-red-400 text-white focus:outline-none focus:ring focus:ring-red-300"
className="rounded bg-red-500 p-2 text-white hover:bg-red-400 focus:outline-none focus:ring focus:ring-red-300"
onClick={() => router.reload()}
>
{t('Cancel')}