From 733d2ee44f365c08e9095d2174f2480f68a3b6fc Mon Sep 17 00:00:00 2001 From: Fil Cesana Date: Tue, 24 Mar 2020 17:37:05 +0100 Subject: [PATCH] fix --- smart-hut/src/components/HeaderController.js | 68 ++++------ smart-hut/src/views/ConfirmResetPassword.js | 136 +++++++++---------- 2 files changed, 93 insertions(+), 111 deletions(-) diff --git a/smart-hut/src/components/HeaderController.js b/smart-hut/src/components/HeaderController.js index 4391de6..acc4259 100644 --- a/smart-hut/src/components/HeaderController.js +++ b/smart-hut/src/components/HeaderController.js @@ -5,14 +5,11 @@ import { BrowserView, MobileView, isBrowser, - isMobile + isMobile, } from "react-device-detect"; const AvatarImage = () => ( - + ); const IconHomeImage = () => ( @@ -35,15 +32,9 @@ const IconHomeImageMobile = () => ( /> ); -const TitleImage = () => ( - -); +const TitleImage = () => ; -const BrowserStructure = (props) => ( +const BrowserStructure = (props) => ( @@ -76,10 +67,10 @@ const BrowserStructure = (props) => ( - + ); -const MobileStructure = (props) => ( +const MobileStructure = (props) => ( @@ -90,36 +81,29 @@ const MobileStructure = (props) => ( - - - - - - - - Settings - - Document - Image - - - See profile... - - Logout - - + + + + + + + + Settings + + Document + Image + + + See profile... + + Logout + + - - + + ); - - - - - - - export default class MyHeader extends React.Component { render() { return ( diff --git a/smart-hut/src/views/ConfirmResetPassword.js b/smart-hut/src/views/ConfirmResetPassword.js index 72d6628..6e09fc8 100644 --- a/smart-hut/src/views/ConfirmResetPassword.js +++ b/smart-hut/src/views/ConfirmResetPassword.js @@ -3,80 +3,78 @@ import HomeNavbar from "./../components/HomeNavbar"; import { Image, Divider, Message, Grid } from "semantic-ui-react"; class Paragraph extends Component { - state = { visible: true }; - - handleDismiss = () => { - this.setState({ visible: false }); - - setTimeout(() => { - this.setState({ visible: true }); - }, 2000); - }; - - render() { - if (this.state.visible) { - return ( - - ); - } - + state = { visible: true }; + + handleDismiss = () => { + this.setState({ visible: false }); + + setTimeout(() => { + this.setState({ visible: true }); + }, 2000); + }; + + render() { + if (this.state.visible) { return ( -

-
- The message will return in 2s -
-
-

+ + + Congratulations! + + Your password has been succesffuly + successfully reset + ); } + + return ( +

+
+ The message will return in 2s +
+
+

+ ); } - - const MessageReg = () => ( - - - - - - - - - - - - - - - +} + +const MessageReg = () => ( + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - ); - - - - + + + +); export default class ConfirmResetPassword extends Component { - render() { - return ; - } - } \ No newline at end of file + render() { + return ; + } +}