This commit is contained in:
Manav Rathi
2024-11-06 11:09:30 +05:30
parent 339cdeaa55
commit b03effff3e

View File

@@ -1,10 +1,6 @@
import type { ButtonishProps } from "@/new/photos/components/mui";
import { bytesInGB, formattedStorageByteSize } from "@/new/photos/utils/units";
import {
FlexWrapper,
Overlay,
SpaceBetweenFlex,
} from "@ente/shared/components/Container";
import { Overlay, SpaceBetweenFlex } from "@ente/shared/components/Container";
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
import CircleIcon from "@mui/icons-material/Circle";
import {
@@ -63,19 +59,19 @@ const BackgroundOverlay: React.FC = () => {
);
};
const ClickOverlay: React.FC<ButtonishProps> = ({ onClick }) => {
return (
<Overlay display="flex">
<FlexWrapper
onClick={onClick}
justifyContent={"flex-end"}
sx={{ cursor: "pointer" }}
>
<ChevronRightIcon />
</FlexWrapper>
</Overlay>
);
};
const ClickOverlay: React.FC<ButtonishProps> = ({ onClick }) => (
<Overlay
sx={{
display: "flex",
justifyContent: "flex-end",
alignItems: "center",
cursor: "pointer",
}}
onClick={onClick}
>
<ChevronRightIcon />
</Overlay>
);
interface SubscriptionCardContentOverlayProps {
userDetails: UserDetails;