removed sonarqube confirm duplication

This commit is contained in:
britea 2020-05-10 21:43:09 +02:00
parent 1a3b631062
commit c5fefe7ad6
2 changed files with 8 additions and 65 deletions

View file

@ -1,40 +1,10 @@
import React, { Component } from "react"; import React, { Component } from "react";
import { import Confirm from "./Confirm";
Image,
Grid,
Button,
Icon,
Header,
Container,
} from "semantic-ui-react";
const msg =
"An E-mail has been sent to your address, confirm your registration by following the enclosed link. If you don't find the E-mail please check also the spam folder.";
export default class ConfirmRegistration extends Component { export default class ConfirmRegistration extends Component {
render() { render() {
return ( return <Confirm msg={msg} />;
<React.Fragment>
<Button circular style={{ margin: "2em" }} href="/">
<Icon name="arrow alternate circle left" />
Go Home{" "}
</Button>
<Grid
textAlign="center"
style={{ height: "70vh" }}
verticalAlign="middle"
>
<Grid.Column style={{ maxWidth: 450 }}>
<Header as="h2" color="blue" textAlign="center">
<Image src="img/logo.png" /> Congratulation!
</Header>
<Container textAlign="center">
<p>
An E-mail has been sent to your address, confirm your
registration by following the enclosed link. If you don't find
the E-mail please check also the spam folder.
</p>
</Container>
</Grid.Column>
</Grid>
</React.Fragment>
);
} }
} }

View file

@ -1,36 +1,9 @@
import React, { Component } from "react"; import React, { Component } from "react";
import { import Confirm from "./Confirm";
Image, const msg = "Your password has been successfully reset.";
Grid,
Button,
Icon,
Header,
Container,
} from "semantic-ui-react";
export default class ConfirmResetPassword extends Component { export default class ConfirmRegistration extends Component {
render() { render() {
return ( return <Confirm msg={msg} />;
<React.Fragment>
<Button circular style={{ margin: "2em" }} href="/">
<Icon name="arrow alternate circle left" />
Go Home{" "}
</Button>
<Grid
textAlign="center"
style={{ height: "70vh" }}
verticalAlign="middle"
>
<Grid.Column style={{ maxWidth: 450 }}>
<Header as="h2" color="blue" textAlign="center">
<Image src="img/logo.png" /> Congratulation!
</Header>
<Container textAlign="center">
<p>Your password has been successfully reset.</p>
</Container>
</Grid.Column>
</Grid>
</React.Fragment>
);
} }
} }