small refactor
This commit is contained in:
parent
a8e98f235a
commit
a148140489
@ -1,15 +1,16 @@
|
||||
import {React, Component} from "react";
|
||||
import "../App.css"
|
||||
|
||||
import Placeholder from "./Placeholder";
|
||||
|
||||
|
||||
class NotFound extends Component {
|
||||
render () {
|
||||
return <div>
|
||||
<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>
|
||||
// todo add design
|
||||
}
|
||||
}
|
||||
|
||||
|
12
src/components/Placeholder.js
Normal file
12
src/components/Placeholder.js
Normal file
@ -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 {resolve} from "crypto-browserify/example/bundle";
|
||||
import "../config"
|
||||
import Placeholder from "./Placeholder";
|
||||
|
||||
import 'axios'
|
||||
import axios from "axios";
|
||||
@ -21,7 +21,11 @@ class Redirecter extends Component {
|
||||
window.location.href = json.url
|
||||
}
|
||||
)
|
||||
return
|
||||
return <div>
|
||||
<h2 className="notFound">Redirect in progress...</h2>
|
||||
|
||||
<Placeholder />
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user