-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(about): add route for about component
- Loading branch information
1 parent
86c1c78
commit 3422e5a
Showing
3 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/scripts/components/main/about-project-standalone/about-project.tsx
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React, {FunctionComponent} from 'react'; | ||
import {useHistory} from 'react-router-dom'; | ||
import AboutProject from '../about-project/about-project'; | ||
import Overlay from '../overlay/overlay'; | ||
|
||
const AboutProjectStandalone: FunctionComponent = () => { | ||
const history = useHistory(); | ||
|
||
return ( | ||
<Overlay onClose={() => history.push('/')}>{<AboutProject />}</Overlay> | ||
); | ||
}; | ||
|
||
export default AboutProjectStandalone; |
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