diff --git a/smart-hut/src/views/Confirm.js b/smart-hut/src/views/Confirm.js new file mode 100644 index 0000000..463e66a --- /dev/null +++ b/smart-hut/src/views/Confirm.js @@ -0,0 +1,36 @@ +import React, { Component } from "react"; +import { + Image, + Grid, + Button, + Icon, + Header, + Container, +} from "semantic-ui-react"; + +export default class Confirm extends Component { + render() { + return ( + + + + +
+ Congratulation! +
+ +

{this.props.msg}

+
+
+
+
+ ); + } +} diff --git a/smart-hut/src/views/ConfirmRegistration.js b/smart-hut/src/views/ConfirmRegistration.js index 05adedd..1eb3c12 100644 --- a/smart-hut/src/views/ConfirmRegistration.js +++ b/smart-hut/src/views/ConfirmRegistration.js @@ -1,40 +1,10 @@ import React, { Component } from "react"; -import { - Image, - Grid, - Button, - Icon, - Header, - Container, -} from "semantic-ui-react"; +import Confirm from "./Confirm"; +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 { render() { - return ( - - - - -
- Congratulation! -
- -

- 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. -

-
-
-
-
- ); + return ; } } diff --git a/smart-hut/src/views/ConfirmResetPassword.js b/smart-hut/src/views/ConfirmResetPassword.js index 75c0bdc..1465149 100644 --- a/smart-hut/src/views/ConfirmResetPassword.js +++ b/smart-hut/src/views/ConfirmResetPassword.js @@ -1,36 +1,9 @@ import React, { Component } from "react"; -import { - Image, - Grid, - Button, - Icon, - Header, - Container, -} from "semantic-ui-react"; +import Confirm from "./Confirm"; +const msg = "Your password has been successfully reset."; -export default class ConfirmResetPassword extends Component { +export default class ConfirmRegistration extends Component { render() { - return ( - - - - -
- Congratulation! -
- -

Your password has been successfully reset.

-
-
-
-
- ); + return ; } }