π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(CollectionShare):added-variant-to-RowButton-to-support-mini-Typography
Aswin Asok80dae75d1d9a
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsxindex c5af2e4732..0442d88220 100644--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx@@ -1998,6 +1998,7 @@ const ManageLinkExpiry: React.FC<ManagePublicLinkSettingDrawerProps> = ({onClick={showExpiryOptions}endIcon={<ChevronRightIcon />}label={t("link_expiry")}+ captionVariant="mini"color={isLinkExpired(publicURL.validTill)? "critical"diff --git a/web/packages/base/components/RowButton.tsx b/web/packages/base/components/RowButton.tsxindex a66bec3e42..3c0c6c62fa 100644--- a/web/packages/base/components/RowButton.tsx+++ b/web/packages/base/components/RowButton.tsx@@ -200,6 +200,12 @@ interface RowButtonProps {* if it is not a string.*/caption?: React.ReactNode;+ /**+ * The typography variant to use for the caption, when present.+ *+ * Default: "small".+ */+ captionVariant?: TypographyProps["variant"];}/**@@ -216,6 +222,7 @@ export const RowButton: React.FC<RowButtonProps> = ({endIcon,label,caption,+ captionVariant = "small",onClick,}) => (<RowButtonRoot rbVariant={variant} fullWidth {...{ disabled, onClick }}>@@ -255,7 +262,10 @@ export const RowButton: React.FC<RowButtonProps> = ({<CaptionTypography color={color}>{"β’"}</CaptionTypography>- <CaptionTypography color={color}>+ <CaptionTypography+ color={color}+ variant={captionVariant}+ >{caption}</CaptionTypography></Stack>@@ -304,10 +314,13 @@ const RowButtonRoot = styled(FocusVisibleButton, {}));const CaptionTypography: React.FC<- React.PropsWithChildren<{ color: RowButtonProps["color"] }>-> = ({ color, children }) => (+ React.PropsWithChildren<{+ color: RowButtonProps["color"];+ variant?: TypographyProps["variant"];+ }>+> = ({ color, variant = "small", children }) => (<Typography- variant="small"+ variant={variant}sx={[color == "critical"? { color: "critical.main" }