Use different aspect ratio for single member and couple
This commit is contained in:
@ -13,6 +13,7 @@ import { isDebug } from "../../utils/debug_utils";
|
||||
export function UploadPhotoButton(p: {
|
||||
label: string;
|
||||
onPhotoSelected: (b: Blob) => Promise<void>;
|
||||
aspect?: number;
|
||||
}): React.ReactElement {
|
||||
const [processing, setProcessing] = React.useState(false);
|
||||
const [imageBlob, setImageBlob] = React.useState<Blob>();
|
||||
@ -115,6 +116,7 @@ export function UploadPhotoButton(p: {
|
||||
src={imageURL!}
|
||||
onCancel={cancelCrop}
|
||||
onSubmit={submitCrop}
|
||||
aspect={p.aspect}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
|
Reference in New Issue
Block a user