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 }) => ( ...@@ -13,16 +13,9 @@ const NotFound = ({ history }) => (
The page you are looking for might have been removed, had its name The page you are looking for might have been removed, had its name
changed, or is temporarily unavailable. changed, or is temporarily unavailable.
</H3> </H3>
<Button <RedirectButton onClick={() => history.push('/')} primary>
onClick={() => history.push('/')}
primary
style={{
display: 'inline-flex',
alignSelf: 'center',
}}
>
Go to dashboard Go to dashboard
</Button> </RedirectButton>
</Root> </Root>
) )
...@@ -33,6 +26,10 @@ const Root = styled.div` ...@@ -33,6 +26,10 @@ const Root = styled.div`
text-align: center; text-align: center;
width: 90vw; width: 90vw;
` `
const RedirectButton = styled(Button)`
display: inline-flex;
align-self: center;
`
const H2 = styled.h2` const H2 = styled.h2`
font-size: ${th('fontSizeHeading2')}; 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