This commit is contained in:
Fil Cesana 2020-03-24 17:37:05 +01:00
parent b00f803670
commit 733d2ee44f
2 changed files with 93 additions and 111 deletions

View file

@ -5,14 +5,11 @@ import {
BrowserView,
MobileView,
isBrowser,
isMobile
isMobile,
} from "react-device-detect";
const AvatarImage = () => (
<Image
src="avatar3.png"
style={{ width: "25px", height: "auto" }}
centered />
<Image src="avatar3.png" style={{ width: "25px", height: "auto" }} centered />
);
const IconHomeImage = () => (
@ -35,13 +32,7 @@ const IconHomeImageMobile = () => (
/>
);
const TitleImage = () => (
<Image
src="title7.png"
size="medium"
centered
/>
);
const TitleImage = () => <Image src="title7.png" size="medium" centered />;
const BrowserStructure = (props) => (
<Grid columns="equal" divided inverted padded>
@ -90,7 +81,7 @@ const MobileStructure = (props) => (
<Grid.Column>
<IconHomeImage />
</Grid.Column>
<Grid.Column >
<Grid.Column>
<AvatarImage />
<Divider />
<Dropdown item icon="setting" size="huge">
@ -113,13 +104,6 @@ const MobileStructure = (props) => (
</Grid>
);
export default class MyHeader extends React.Component {
render() {
return (

View file

@ -16,11 +16,13 @@ class Paragraph extends Component {
render() {
if (this.state.visible) {
return (
<Message
onDismiss={this.handleDismiss}
header="Congratulation!"
content="Your password has been succesffuly reset"
/>
<Message onDismiss={this.handleDismiss}>
<Message.Header>
Congratulation<ins>s</ins>!
</Message.Header>
Your password has been <del>succesffuly</del>
<ins>successfully</ins> reset
</Message>
);
}
@ -33,9 +35,9 @@ class Paragraph extends Component {
</p>
);
}
}
}
const MessageReg = () => (
const MessageReg = () => (
<Grid>
<HomeNavbar />
<Divider />
@ -69,14 +71,10 @@ class Paragraph extends Component {
<Grid.Column width={3}></Grid.Column>
</Grid.Row>
</Grid>
);
);
export default class ConfirmResetPassword extends Component {
render() {
return <MessageReg/>;
}
return <MessageReg />;
}
}