1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-19 01:25:51 +07:00

refactor: adds missing test spec for button click in not found (#222)

* refactor: adds missing test spec for button click in not found

* refactor: improves test description
This commit is contained in:
Ayush Sharma
2019-10-26 13:13:47 +02:00
committed by GitHub
parent a38b93e127
commit 531295a6d0
2 changed files with 17 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ const StyledHeading = styled(Typography)({
const NotFound: React.FC = () => {
const history = useHistory();
const handleGomHome = useCallback(() => {
const handleGoHome = useCallback(() => {
history.push('/');
}, [history]);
@@ -37,7 +37,7 @@ const NotFound: React.FC = () => {
<StyledHeading className="not-found-text" variant="h4">
{NOT_FOUND_TEXT}
</StyledHeading>
<Button onClick={handleGomHome} variant="contained">
<Button onClick={handleGoHome} variant="contained">
{GO_TO_HOME_PAGE}
</Button>
</Box>