2017-05-03 18:40:09 +02:00
|
|
|
import React from 'react'
|
|
|
|
import Router from 'next/router'
|
|
|
|
|
|
|
|
export default class extends React.Component {
|
2019-11-11 04:24:53 +01:00
|
|
|
constructor(...args) {
|
2017-05-03 18:40:09 +02:00
|
|
|
super(...args)
|
|
|
|
this.state = {}
|
|
|
|
}
|
|
|
|
|
2019-11-11 04:24:53 +01:00
|
|
|
componentDidMount() {
|
2017-05-03 18:40:09 +02:00
|
|
|
const asPath = Router.asPath
|
|
|
|
this.setState({ asPath })
|
|
|
|
}
|
|
|
|
|
2019-11-11 04:24:53 +01:00
|
|
|
render() {
|
|
|
|
return <div className="as-path-content">{this.state.asPath}</div>
|
2017-05-03 18:40:09 +02:00
|
|
|
}
|
|
|
|
}
|