Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
this.eHandler = enquireScreen(mobile => {
const { isMobile } = this.state
if (isMobile !== mobile) {
this.setState({
isMobile: mobile
})
}
})
this.props.dispatch(
getAdminUserInfo({}, result => {
console.log('result', result)
if (result.website) {
document.title = result.website.website_name
}
})
)
}
enquireScreenRegister = () => {
const mediaCondition = 'only screen and (max-width: 720px)';
enquireScreen((mobile) => {
this.setState({
isMobile: mobile,
});
}, mediaCondition);
};
enquireScreenRegister = () => {
const mediaCondition = 'only screen and (max-width: 720px)';
enquireScreen((mobile) => {
this.setState({
isMobile: mobile,
});
}, mediaCondition);
};
const enquireScreenRegister = () => {
const mediaCondition = 'only screen and (max-width: 720px)';
enquireScreen((mobile) => {
setMobile(mobile);
}, mediaCondition);
};
enquireScreenRegister = () => {
const mediaCondition = 'only screen and (max-width: 720px)';
enquireScreen((mobile) => {
this.setState({
isMobile: mobile,
});
}, mediaCondition);
};
enquireScreenRegister = () => {
const mediaCondition = 'only screen and (max-width: 720px)';
enquireScreen((mobile) => {
this.setState({
isMobile: mobile,
});
}, mediaCondition);
};
componentDidMount() {
enquireScreen(mobile => {
this.setState({
isMobile: mobile,
});
});
}
getPageTitle() {
componentDidMount() {
enquireScreen(mobile => {
this.setState({
isMobile: mobile,
});
});
}
getPageTitle() {
componentDidMount() {
enquireScreen(mobile => {
this.setState({ isMobile: mobile });
});
this.fetchUserInfo();
this.setState({ showAuthCompany: this.props.showAuthCompany });
var query = qs.parse(this.props.location.search);
if (query && query.market_info) {
this.setState({ market_info: query.market_info });
this.setState({ showAuthCompany: true });
}
}
onOpenRegion = () => {
componentDidMount() {
this.props.history.push({ pathname : '/' })
enquireScreen(mobile => {
this.setState({
isMobile: mobile,
});
});
this.props.dispatch({
type: 'user/fetchCurrent',
});
}
getPageTitle() {