Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

This was a no-op for disabled buttons

Manav Rathi15f427ef37f8
diff --git a/web/packages/new/photos/components/gallery/index.tsx b/web/packages/new/photos/components/gallery/index.tsx
index ee8aad7040..6f65587431 100644
--- a/web/packages/new/photos/components/gallery/index.tsx
+++ b/web/packages/new/photos/components/gallery/index.tsx
@@ -99,9 +99,6 @@ export function GalleryEmptyState({ openUploader, shouldAllowNewUpload }) {
/>
<VerticallyCentered paddingTop={1.5} paddingBottom={1.5}>
<Button
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
- // @ts-ignore
- style={{ cursor: !shouldAllowNewUpload && "not-allowed" }}
color="accent"
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-call
onClick={() => openUploader("upload")}
@@ -114,9 +111,6 @@ export function GalleryEmptyState({ openUploader, shouldAllowNewUpload }) {
</FlexWrapper>
</Button>
<Button
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
- // @ts-ignore
- style={{ cursor: !shouldAllowNewUpload && "not-allowed" }}
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-call
onClick={() => openUploader("import")}
disabled={!shouldAllowNewUpload}