Merge branch 'Saga' of https://git.e-declic.net/talents-tube/app into Saga
This commit is contained in:
@@ -35,6 +35,9 @@ import withWidth, { isWidthUp } from '@material-ui/core/withWidth'
|
|||||||
import Typography from '@material-ui/core/Typography';
|
import Typography from '@material-ui/core/Typography';
|
||||||
import { withRouter } from "next/router";
|
import { withRouter } from "next/router";
|
||||||
import ActiveLink from "./../atoms/Activelink";
|
import ActiveLink from "./../atoms/Activelink";
|
||||||
|
import axios from 'axios';
|
||||||
|
import setAuthorizationHeader from "../../data/setAuthorizationHeader";
|
||||||
|
|
||||||
const styles = theme => ({
|
const styles = theme => ({
|
||||||
root: {
|
root: {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@@ -288,6 +291,7 @@ const styles = theme => ({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
let urlEnv;
|
||||||
|
|
||||||
class Header extends React.Component {
|
class Header extends React.Component {
|
||||||
state = {
|
state = {
|
||||||
@@ -298,20 +302,32 @@ class Header extends React.Component {
|
|||||||
toggle: true
|
toggle: true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
toggleDrawer = (side, open) => () => {
|
toggleDrawer = (side, open) => () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
[side]: open,
|
[side]: open,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
onRedirectAccount = e => {
|
||||||
|
urlEnv = (process.env.NODE_ENV !== 'production') ? '//localhost/app_dev.php/' : process.env.SERVER_URL;
|
||||||
|
e.preventDefault();
|
||||||
|
var redirectAccountUrl = urlEnv + "api/talent?bearer=" + localStorage.getItem("ttJWT");
|
||||||
|
window.open(redirectAccountUrl);
|
||||||
|
}
|
||||||
|
|
||||||
toggle = () => this.setState(state => ({ toggle: !state.toggle }))
|
toggle = () => this.setState(state => ({ toggle: !state.toggle }))
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { classes } = this.props;
|
const { classes } = this.props;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -483,8 +499,8 @@ class Header extends React.Component {
|
|||||||
</ListItemText>
|
</ListItemText>
|
||||||
</ListItem></a>
|
</ListItem></a>
|
||||||
</Link>
|
</Link>
|
||||||
<Link href="https://www.talentstube.com/login" >
|
<Link href="" >
|
||||||
<a className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
<a onClick={this.onRedirectAccount} className={classes.lightMenuItem}><ListItem classes={{ root: classes.rootListItemIcon }}>
|
||||||
<AccountCircleIcon className={classes.icon} />
|
<AccountCircleIcon className={classes.icon} />
|
||||||
<ListItemText primary='Mon compte'>
|
<ListItemText primary='Mon compte'>
|
||||||
</ListItemText>
|
</ListItemText>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const styles = theme => ({
|
|||||||
margin: '2vh 3vh 3vh 1vh',
|
margin: '2vh 3vh 3vh 1vh',
|
||||||
[theme.breakpoints.up('sm')]: {
|
[theme.breakpoints.up('sm')]: {
|
||||||
margin: '1vh 0 1vh 0',
|
margin: '1vh 0 1vh 0',
|
||||||
height: '420px',
|
height: '530px',
|
||||||
},
|
},
|
||||||
[theme.breakpoints.up('md')]: {
|
[theme.breakpoints.up('md')]: {
|
||||||
height: '404px',
|
height: '404px',
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const styles = theme => ({
|
|||||||
paddingLeft: theme.spacing(1),
|
paddingLeft: theme.spacing(1),
|
||||||
paddingRight: theme.spacing(1),
|
paddingRight: theme.spacing(1),
|
||||||
minHeight: '8vh',
|
minHeight: '8vh',
|
||||||
[theme.breakpoints.up('lg')]: {
|
[theme.breakpoints.up('md')]: {
|
||||||
minHeight: 'inherit',
|
minHeight: 'inherit',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ const styles = theme => ({
|
|||||||
paddingBottom: theme.spacing(3),
|
paddingBottom: theme.spacing(3),
|
||||||
},
|
},
|
||||||
[theme.breakpoints.up('md')]: {
|
[theme.breakpoints.up('md')]: {
|
||||||
padding: theme.spacing(2, 20),
|
padding: theme.spacing(2, 10),
|
||||||
paddingBottom: theme.spacing(9),
|
paddingBottom: theme.spacing(9),
|
||||||
},
|
},
|
||||||
[theme.breakpoints.up('lg')]: {
|
[theme.breakpoints.up('lg')]: {
|
||||||
|
|||||||
Reference in New Issue
Block a user