diff --git a/app/components/header.js b/app/components/header.js index 55d211b..6b67bd1 100644 --- a/app/components/header.js +++ b/app/components/header.js @@ -41,6 +41,7 @@ const Title = styled(TextComponent)` font-size: ${props => `${props.theme.fontSize.title}em`}; margin-top: 10px; margin-bottom: 10px; + text-transform: capitalize; `; const Divider = styled.div` diff --git a/app/router/router.js b/app/router/router.js index 018fe0e..0534ffd 100644 --- a/app/router/router.js +++ b/app/router/router.js @@ -31,9 +31,15 @@ const ContentWrapper = styled.div` width: 100vw; `; +const getTitle = (path: string) => { + if (path === '/') return 'Dashboard'; + + return path.replace('/', ''); +}; + export const RouterComponent = ({ location }: { location: Location }) => ( - +