Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(docz-theme-default): not found page
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jul 22, 2018
1 parent 204f1bb commit fb1ac49
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions packages/docz-theme-default/src/components/ui/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import * as React from 'react'
import { ThemeConfig } from 'docz'
import styled from 'react-emotion'

import { Sidebar, Main } from '../shared'

const Wrapper = styled('div')`
display: flex;
align-items: center;
Expand All @@ -25,10 +28,17 @@ const Subtitle = styled('p')`
`

export const NotFound = () => (
<Wrapper>
<Title>Page Not Found</Title>
<Subtitle>
Check if you haven't changed the document route or delete it!
</Subtitle>
</Wrapper>
<ThemeConfig>
{config => (
<Main config={config}>
<Sidebar />
<Wrapper>
<Title>Page Not Found</Title>
<Subtitle>
Check if you haven't changed the document route or delete it!
</Subtitle>
</Wrapper>
</Main>
)}
</ThemeConfig>
)

0 comments on commit fb1ac49

Please sign in to comment.