import * as _ from "lodash"; import * as React from "react"; import { Avatar, AvatarSize } from "../../components/Avatar"; import { Modal, IModalProps } from "../../components/Modal"; import { Upload, IUploadEvent } from "../../components/Upload"; import { Reveal, RevealType } from "../../components/Reveal"; import { SpriteType } from "../../components/Sprite"; interface IEditNameProps { /** Required */ uploadPhoto: (upload: IUploadEvent) => Promise; /** Optional */ referencePhotoSrc?: string; modal?: IModalProps; onClose?: () => void; } export class EditName extends React.PureComponent { public render() { return ( (

Upload a name picture

Take a selfie so that friends nearby know that it's you!

{ this.props.uploadPhoto(upload); }} />
) ]}>
); } }