Fix image problem
continuous-integration/drone/push Build is failing Details

d_yanis 1 year ago
parent fd6fb02255
commit 634b9cba65

@ -66,14 +66,14 @@ function ProfilSettings({ user }: { user: User }) {
const nameRef = useRef<HTMLInputElement>(null); const nameRef = useRef<HTMLInputElement>(null);
const emailRef = useRef<HTMLInputElement>(null); const emailRef = useRef<HTMLInputElement>(null);
const size = "171x180"; const width = 140;
const profilePicture = user.profilePicture + "/" + size; const profilePicture = user.profilePicture;
console.log("profile :" + profilePicture); console.log("profile :" + profilePicture);
return ( return (
<Container> <Container>
<Row> <Row>
<Col> <Col>
<Image src={profilePicture} sizes={size} roundedCircle /> <Image src={profilePicture} width={width} roundedCircle />
<Button variant="outline-primary" onClick={() => alert("En cours de développement...")}>Changer photo de profil</Button> <Button variant="outline-primary" onClick={() => alert("En cours de développement...")}>Changer photo de profil</Button>
</Col> </Col>
<Col> <Col>

Loading…
Cancel
Save