All files app.tsx

80% Statements 8/10
100% Branches 0/0
0% Functions 0/2
77.77% Lines 7/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 451x 1x   1x   1x                     1x                 1x           1x                          
import { StrictMode } from 'react'
import styled, { ThemeProvider } from 'styled-components'
 
import { GlobalStyle, theme } from './styles'
 
const AppContainer = styled.div`
  height: 100%;
  min-height: 100vh;
  width: 100vw;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: ${(props) => props.theme.bg};
`
 
const ContentWrapper = styled.div`
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1920px;
`
 
const Footer = styled(ContentWrapper)`
  flex: unset;
  padding-top: 40px;
  padding-bottom: 20px;
`
 
export const App = () => (
  <ThemeProvider theme={theme}>
    <GlobalStyle />
    <StrictMode>
      <AppContainer>
        <ContentWrapper>
          <div>Typescript React Template</div>
        </ContentWrapper>
        <Footer as="footer">licensed under the MIT license.</Footer>
      </AppContainer>
    </StrictMode>
  </ThemeProvider>
)