small refactor
parent
a8e98f235a
commit
a148140489
|
@ -1,15 +1,16 @@
|
||||||
import {React, Component} from "react";
|
import {React, Component} from "react";
|
||||||
import "../App.css"
|
import "../App.css"
|
||||||
|
|
||||||
|
import Placeholder from "./Placeholder";
|
||||||
|
|
||||||
|
|
||||||
class NotFound extends Component {
|
class NotFound extends Component {
|
||||||
render () {
|
render () {
|
||||||
return <div>
|
return <div>
|
||||||
<h2 className="notFound">Not found or deleted.</h2>
|
<h2 className="notFound">Not found or deleted.</h2>
|
||||||
|
|
||||||
<p className="small-text">Short any link with <a href="/" className="href">Timka ShortLink</a></p>
|
<Placeholder />
|
||||||
</div>
|
</div>
|
||||||
// todo add design
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
import {React, Component} from "react";
|
||||||
|
|
||||||
|
import "../App.css"
|
||||||
|
|
||||||
|
|
||||||
|
class Placeholder extends Component {
|
||||||
|
render () {
|
||||||
|
return <p className="small-text">Short any link with <a href="/" className="href">Timka ShortLink</a></p>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Placeholder
|
|
@ -1,6 +1,6 @@
|
||||||
import {React, Component} from "react";
|
import {React, Component} from "react";
|
||||||
import {resolve} from "crypto-browserify/example/bundle";
|
|
||||||
import "../config"
|
import "../config"
|
||||||
|
import Placeholder from "./Placeholder";
|
||||||
|
|
||||||
import 'axios'
|
import 'axios'
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
@ -21,7 +21,11 @@ class Redirecter extends Component {
|
||||||
window.location.href = json.url
|
window.location.href = json.url
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return
|
return <div>
|
||||||
|
<h2 className="notFound">Redirect in progress...</h2>
|
||||||
|
|
||||||
|
<Placeholder />
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue