src/pages/main/index.tsx
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 21
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 18
mnd 0
bc 0
fnc 0
dl 0
loc 21
bpm 0
cpm 0
noi 9
c 0
b 0
f 0
1
import { useStore } from 'effector-react'
2
import { PageChangeAnimation } from 'entities/PageChangeAnimation'
3
import { MoviesCardsGrid } from 'entities/MoviesCardsGrid'
4
import { Pagination } from 'feature/pagination'
5
import { $page } from 'feature/pagination/model'
6
7
const Main = () => {
0 ignored issues
show
introduced by
Function component is not a function declaration
Loading history...
8
  const page = useStore($page)
9
10
  return (
11
    <>
0 ignored issues
show
introduced by
Expected indentation of 6 space characters but found 4.
Loading history...
introduced by
JSX not allowed in files with extension '.tsx'
Loading history...
12
      <PageChangeAnimation keyProp={page} timeout={500} classNames="fade">
0 ignored issues
show
introduced by
Expected indentation of 8 space characters but found 6.
Loading history...
introduced by
Prop timeout must be placed on a new line
Loading history...
introduced by
Props should be sorted alphabetically
Loading history...
13
        <MoviesCardsGrid currentPage={page} />
0 ignored issues
show
introduced by
Expected indentation of 10 space characters but found 8.
Loading history...
14
      </PageChangeAnimation>
15
      <Pagination />
0 ignored issues
show
introduced by
Expected indentation of 8 space characters but found 6.
Loading history...
introduced by
JSX element should start in a new line
Loading history...
16
    </>
17
  )
18
}
19
20
export { Main }
21