small refactor

master
timka 2023-11-23 18:10:04 +03:00
parent a8e98f235a
commit a148140489
3 changed files with 21 additions and 4 deletions

View File

@ -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
} }
} }

View 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

View File

@ -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>
} }
} }