Skip to content
Snippets Groups Projects
Commit ab4e04a0 authored by Anca Ursachi's avatar Anca Ursachi
Browse files

refactor(notFound): Move inline css into redirectButton styled-component.

parent a93b3d78
No related branches found
No related tags found
3 merge requests!222Sprint #26,!217Sprint #26,!212fix(submissionWizzard): Admin should not be able to edit metadata for old versions using the link.
......@@ -13,16 +13,9 @@ const NotFound = ({ history }) => (
The page you are looking for might have been removed, had its name
changed, or is temporarily unavailable.
</H3>
<Button
onClick={() => history.push('/')}
primary
style={{
display: 'inline-flex',
alignSelf: 'center',
}}
>
<RedirectButton onClick={() => history.push('/')} primary>
Go to dashboard
</Button>
</RedirectButton>
</Root>
)
......@@ -33,6 +26,10 @@ const Root = styled.div`
text-align: center;
width: 90vw;
`
const RedirectButton = styled(Button)`
display: inline-flex;
align-self: center;
`
const H2 = styled.h2`
font-size: ${th('fontSizeHeading2')};
`
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment