Last change
on this file since 34950c6 was d66b8eb, checked in by Marko <Marko@…>, 2 years ago |
Component for editing offers added
|
-
Property mode
set to
100644
|
File size:
592 bytes
|
Line | |
---|
1 | import React, { Component } from 'react'
|
---|
2 | import HeaderComponent from './HeaderComponent/HeaderComponent'
|
---|
3 | import RegisterFormComponent from './LoginRegisterComponents/RegisterFormComponent'
|
---|
4 |
|
---|
5 | export class RegisterPageComponent extends Component {
|
---|
6 |
|
---|
7 | constructor(props) {
|
---|
8 | super(props)
|
---|
9 |
|
---|
10 | this.state = {
|
---|
11 |
|
---|
12 | }
|
---|
13 | }
|
---|
14 |
|
---|
15 |
|
---|
16 | componentDidMount(){
|
---|
17 | if(localStorage.getItem('token'))
|
---|
18 | {
|
---|
19 | window.location.href = "/"
|
---|
20 | }
|
---|
21 | }
|
---|
22 |
|
---|
23 | render() {
|
---|
24 | return (
|
---|
25 | <>
|
---|
26 | <HeaderComponent/>
|
---|
27 | <RegisterFormComponent/>
|
---|
28 | </>
|
---|
29 | )
|
---|
30 | }
|
---|
31 | }
|
---|
32 |
|
---|
33 | export default RegisterPageComponent
|
---|
Note:
See
TracBrowser
for help on using the repository browser.