move cursor style to upload buttons

This commit is contained in:
Abhinav 2023-02-21 18:43:16 +05:30
parent 3ac9a0e2e1
commit f6e9363e37

View file

@ -24,7 +24,6 @@ const Wrapper = styled(Box)`
const NonDraggableImage = styled('img')`
pointer-events: none;
`;
export default function EmptyScreen({ openUploader }) {
const deduplicateContext = useContext(DeduplicateContext);
return deduplicateContext.isOnDeduplicatePage ? (
@ -58,13 +57,14 @@ export default function EmptyScreen({ openUploader }) {
srcSet="/images/empty-state/ente_duck@2x.png,
/images/empty-state/ente_duck@3x.png"
/>
<span
style={{
cursor:
!uploadManager.shouldAllowNewUpload() && 'not-allowed',
}}>
<VerticallyCentered paddingTop={1.5} paddingBottom={1.5}>
<Button
style={{
cursor:
!uploadManager.shouldAllowNewUpload() &&
'not-allowed',
}}
color="accent"
onClick={() =>
openUploader(UploadTypeSelectorIntent.normalUpload)
@ -82,6 +82,11 @@ export default function EmptyScreen({ openUploader }) {
</FlexWrapper>
</Button>
<Button
style={{
cursor:
!uploadManager.shouldAllowNewUpload() &&
'not-allowed',
}}
onClick={() =>
openUploader(UploadTypeSelectorIntent.import)
}
@ -141,7 +146,6 @@ export default function EmptyScreen({ openUploader }) {
</a>
</FlexWrapper>
</VerticallyCentered>
</span>
</Wrapper>
);
}