mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
Refactored index
This commit is contained in:
@@ -8,7 +8,6 @@ test('renders index page', () => {
|
||||
<Index />
|
||||
</StyledApp>
|
||||
);
|
||||
const helloWorldElement = getByText('Hello, world!');
|
||||
|
||||
expect(helloWorldElement).toBeInTheDocument();
|
||||
expect(getByText('Hello, world!')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
import type { ReactElement } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const Title = styled.h1`
|
||||
color: ${({ theme }) => theme.colors.primary};
|
||||
font-size: 50px;
|
||||
text-align: center;
|
||||
`;
|
||||
import Title from 'styles/generic/Title';
|
||||
|
||||
export default function Home(): ReactElement {
|
||||
return <Title>Hello, world!</Title>;
|
||||
|
||||
9
styles/generic/Title.tsx
Normal file
9
styles/generic/Title.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import styled from 'styled-components';
|
||||
|
||||
const Title = styled.h1`
|
||||
color: ${({ theme }) => theme.colors.primary};
|
||||
font-size: 50px;
|
||||
text-align: center;
|
||||
`;
|
||||
|
||||
export default Title;
|
||||
Reference in New Issue
Block a user