feat(ott-221): init filters components (#30)

keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Ruslan Khayrullin 6 years ago committed by GitHub
parent a6fdfe962f
commit 4616f2b32f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/features/App/AuthenticatedApp.tsx
  2. 5
      src/features/DateFilter/index.tsx
  3. 3
      src/features/DateFilter/styled.tsx
  4. 9
      src/features/Header/index.tsx
  5. 28
      src/features/HomePage/index.tsx
  6. 7
      src/features/HomePage/styled.tsx
  7. 5
      src/features/MatchStatusFilter/index.tsx
  8. 3
      src/features/MatchStatusFilter/styled.tsx
  9. 5
      src/features/Search/index.tsx
  10. 3
      src/features/Search/styled.tsx
  11. 5
      src/features/SportTypeFilter/index.tsx
  12. 3
      src/features/SportTypeFilter/styled.tsx
  13. 5
      src/features/ToggleScore/index.tsx
  14. 3
      src/features/ToggleScore/styled.tsx
  15. 5
      src/features/TournamentFilter/index.tsx
  16. 3
      src/features/TournamentFilter/styled.tsx

@ -16,12 +16,14 @@ import { PlayerPage } from 'features/PlayerPage'
import { TournamentPage } from 'features/TournamentPage'
import { LanguageSelect } from 'features/LanguageSelect'
import { UserAccount } from 'features/UserAccount'
import { ToggleScore } from 'features/ToggleScore'
export const AuthenticatedApp = () => {
useLexicsConfig(authenticatedLexics)
return (
<Fragment>
<ToggleScore />
<LanguageSelect />
<Switch>
<Route exact path={PAGES.home}>

@ -0,0 +1,5 @@
import React from 'react'
import { Wrapper } from './styled'
export const DateFilter = () => <Wrapper />

@ -0,0 +1,3 @@
import styled from 'styled-components/macro'
export const Wrapper = styled.div``

@ -1,11 +1,16 @@
import React from 'react'
import React, { ReactNode } from 'react'
import { Menu } from 'features/Menu'
import { Wrapper } from './styled'
export const Header = () => (
type HeaderProps = {
children: ReactNode,
}
export const Header = ({ children }: HeaderProps) => (
<Wrapper>
<Menu />
{children}
</Wrapper>
)

@ -2,9 +2,35 @@ import React from 'react'
import { Header } from 'features/Header'
import { MainWrapper } from 'features/MainWrapper'
import { Search } from 'features/Search'
import { DateFilter } from 'features/DateFilter'
import { MatchStatusFilter } from 'features/MatchStatusFilter'
import { SportTypeFilter } from 'features/SportTypeFilter'
import { TournamentFilter } from 'features/TournamentFilter'
import {
FilterWrapper,
} from './styled'
export const HomePage = () => (
<MainWrapper>
<Header />
<Header>
<FilterWrapper>
<Search />
</FilterWrapper>
<FilterWrapper>
<DateFilter />
</FilterWrapper>
<FilterWrapper>
<MatchStatusFilter />
</FilterWrapper>
<FilterWrapper>
<SportTypeFilter />
<TournamentFilter />
</FilterWrapper>
</Header>
</MainWrapper>
)

@ -0,0 +1,7 @@
import styled from 'styled-components/macro'
export const FilterWrapper = styled.div`
width: 288px;
height: 48px;
margin-right: 16px;
`

@ -0,0 +1,5 @@
import React from 'react'
import { Wrapper } from './styled'
export const MatchStatusFilter = () => <Wrapper />

@ -0,0 +1,3 @@
import styled from 'styled-components/macro'
export const Wrapper = styled.div``

@ -0,0 +1,5 @@
import React from 'react'
import { Wrapper } from './styled'
export const Search = () => <Wrapper />

@ -0,0 +1,3 @@
import styled from 'styled-components/macro'
export const Wrapper = styled.div``

@ -0,0 +1,5 @@
import React from 'react'
import { Wrapper } from './styled'
export const SportTypeFilter = () => <Wrapper />

@ -0,0 +1,3 @@
import styled from 'styled-components/macro'
export const Wrapper = styled.div``

@ -0,0 +1,5 @@
import React from 'react'
import { Wrapper } from './styled'
export const ToggleScore = () => <Wrapper />

@ -0,0 +1,3 @@
import styled from 'styled-components/macro'
export const Wrapper = styled.div``

@ -0,0 +1,5 @@
import React from 'react'
import { Wrapper } from './styled'
export const TournamentFilter = () => <Wrapper />

@ -0,0 +1,3 @@
import styled from 'styled-components/macro'
export const Wrapper = styled.div``
Loading…
Cancel
Save