forked from reactplay/react-play
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 340-bug-report-footer-enhancements
- Loading branch information
Showing
54 changed files
with
2,050 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [atapas] | ||
github: [reactplay] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
import { Link } from 'react-router-dom'; | ||
import { ReactComponent as Image404 } from "images/img-404.svg"; | ||
import "./404.css"; | ||
import Loader from 'common/spinner/spinner'; | ||
|
||
const PageNotFound = ({loading}) => { | ||
import Loader from "common/spinner/spinner"; | ||
|
||
const PageNotFound = ({ loading, msg, details, Image }) => { | ||
if (loading) { | ||
return <Loader /> | ||
return <Loader />; | ||
} | ||
|
||
return( | ||
return ( | ||
<main className='page-404'> | ||
<Image404 className="page-404-image" /> | ||
<p className='page-404-lead'>Look like you are lost</p> | ||
<p className='page-404-desc'> | ||
Why don't you go back to <Link to="/" className='page-404-link'>home</Link>? | ||
</p> | ||
{Image ? <img src={Image} alt="under-development" className='under-development' /> : <Image404 className='page-404-image' />} | ||
<p className='page-404-lead'>{msg}</p> | ||
<p className='page-404-desc'>{details}</p> | ||
</main> | ||
); | ||
}; | ||
|
||
export default PageNotFound; | ||
PageNotFound.defaultProps = { | ||
msg: "Looks like you are lost", | ||
details: "Why don't you go back to home.", | ||
Image: null | ||
}; | ||
|
||
export default PageNotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.